service base url changed, test codes removed for umimplemented services, category id changed to string
This commit is contained in:
@@ -72,7 +72,7 @@ public class MainActivity extends BaseActivity {
|
||||
|
||||
private FragmentManager fragmentManager;
|
||||
private String currentFragmentName = "";
|
||||
private int currentCategoryId = -1;
|
||||
private String currentCategoryId = "";
|
||||
private boolean isStartWithOrderHistory, isStartWithCart;
|
||||
private ArrayList<CategoryModel> categoryList = new ArrayList<>();
|
||||
private NavigationMenuRecyclerAdapter navigationMenuRecyclerAdapter;
|
||||
@@ -226,7 +226,7 @@ public class MainActivity extends BaseActivity {
|
||||
fragmentManager.beginTransaction().replace(R.id.fragmentContainer, CartFragment.newInstance()).commit();
|
||||
currentFragmentName = CartFragment.FRAGMENT_NAME;
|
||||
|
||||
currentCategoryId = -1;
|
||||
currentCategoryId = "";
|
||||
|
||||
cartTotalRelativeLayout.setVisibility(View.GONE);
|
||||
shoppingCartImageView.setImageDrawable(yellowCartDrawable);
|
||||
@@ -244,7 +244,7 @@ public class MainActivity extends BaseActivity {
|
||||
fragmentManager.beginTransaction().replace(R.id.fragmentContainer, OrderHistoryFragment.newInstance()).commit();
|
||||
currentFragmentName = OrderHistoryFragment.FRAGMENT_NAME;
|
||||
|
||||
currentCategoryId = -1;
|
||||
currentCategoryId = "";
|
||||
|
||||
cartTotalRelativeLayout.setVisibility(View.GONE);
|
||||
shoppingCartImageView.setImageDrawable(whiteCartDrawable);
|
||||
@@ -262,7 +262,7 @@ public class MainActivity extends BaseActivity {
|
||||
fragmentManager.beginTransaction().replace(R.id.fragmentContainer, ProfileFragment.newInstance()).commit();
|
||||
currentFragmentName = ProfileFragment.FRAGMENT_NAME;
|
||||
|
||||
currentCategoryId = -1;
|
||||
currentCategoryId = "";
|
||||
|
||||
cartTotalRelativeLayout.setVisibility(View.GONE);
|
||||
shoppingCartImageView.setImageDrawable(whiteCartDrawable);
|
||||
@@ -276,7 +276,7 @@ public class MainActivity extends BaseActivity {
|
||||
fragmentManager.beginTransaction().replace(R.id.fragmentContainer, StoreInfoFragment.newInstance()).commit();
|
||||
currentFragmentName = StoreInfoFragment.FRAGMENT_NAME;
|
||||
|
||||
currentCategoryId = -1;
|
||||
currentCategoryId = "";
|
||||
|
||||
cartTotalRelativeLayout.setVisibility(View.GONE);
|
||||
shoppingCartImageView.setImageDrawable(whiteCartDrawable);
|
||||
@@ -435,7 +435,7 @@ public class MainActivity extends BaseActivity {
|
||||
|
||||
private void openProductsScreen(CategoryModel clickedCategoryModel){
|
||||
|
||||
if(clickedCategoryModel.getId() == ApiConstants.PRODUCT_ID_VERSION_MENU){
|
||||
if(clickedCategoryModel.getId().equals(ApiConstants.PRODUCT_ID_VERSION_MENU)){
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user