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();
|
||||
|
||||
if(Common.CURRENT_USER == null){
|
||||
is_favorite.setVisibility(View.GONE);
|
||||
not_favorite.setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
|
||||
//Customize UI Horizontal Quantitizer
|
||||
horizontalQuantitizer.setTextAnimationStyle(AnimationStyle.SLIDE_IN_REVERSE);
|
||||
horizontalQuantitizer.setPlusIconBackgroundColor(R.color.white);
|
||||
@@ -351,7 +357,11 @@ public class FoodDetailActivity extends AppCompatActivity {
|
||||
food = tempFood;
|
||||
|
||||
initData();
|
||||
checkFoodIsFavorite(Integer.parseInt(foodId));
|
||||
|
||||
if(Common.CURRENT_USER != null)
|
||||
checkFoodIsFavorite(Integer.parseInt(foodId));
|
||||
else
|
||||
showUI();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -352,7 +352,7 @@
|
||||
android:background="#80000000"
|
||||
android:id="@+id/progress_layout"
|
||||
android:clickable="true"
|
||||
android:visibility="visible"
|
||||
android:visibility="gone"
|
||||
>
|
||||
|
||||
<ProgressBar
|
||||
|
||||
Reference in New Issue
Block a user