mirror of
https://github.com/Nezumi-2711/Foodify.git
synced 2026-09-22 13:38:41 +00:00
Fix bug
This commit is contained in:
@@ -97,6 +97,12 @@ public class FoodDetailActivity extends AppCompatActivity {
|
|||||||
|
|
||||||
hideUI();
|
hideUI();
|
||||||
|
|
||||||
|
if(Common.CURRENT_USER == null){
|
||||||
|
is_favorite.setVisibility(View.GONE);
|
||||||
|
not_favorite.setVisibility(View.GONE);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//Customize UI Horizontal Quantitizer
|
//Customize UI Horizontal Quantitizer
|
||||||
horizontalQuantitizer.setTextAnimationStyle(AnimationStyle.SLIDE_IN_REVERSE);
|
horizontalQuantitizer.setTextAnimationStyle(AnimationStyle.SLIDE_IN_REVERSE);
|
||||||
horizontalQuantitizer.setPlusIconBackgroundColor(R.color.white);
|
horizontalQuantitizer.setPlusIconBackgroundColor(R.color.white);
|
||||||
@@ -351,7 +357,11 @@ public class FoodDetailActivity extends AppCompatActivity {
|
|||||||
food = tempFood;
|
food = tempFood;
|
||||||
|
|
||||||
initData();
|
initData();
|
||||||
|
|
||||||
|
if(Common.CURRENT_USER != null)
|
||||||
checkFoodIsFavorite(Integer.parseInt(foodId));
|
checkFoodIsFavorite(Integer.parseInt(foodId));
|
||||||
|
else
|
||||||
|
showUI();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -352,7 +352,7 @@
|
|||||||
android:background="#80000000"
|
android:background="#80000000"
|
||||||
android:id="@+id/progress_layout"
|
android:id="@+id/progress_layout"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:visibility="visible"
|
android:visibility="gone"
|
||||||
>
|
>
|
||||||
|
|
||||||
<ProgressBar
|
<ProgressBar
|
||||||
|
|||||||
Reference in New Issue
Block a user