Skip to content

Commit

Permalink
- Done #367
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Torres committed Feb 5, 2016
1 parent df5294c commit ae0a77e
Showing 1 changed file with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,17 +167,20 @@ public void run() {
protected void onResume() {
mCurrentUser = userDao.getCurrentUser();

getCurrentOrder();

if (mOrder == null || mOrder.OrderItems == null || mOrder.OrderItems.isEmpty()) {
Crashlytics.log(Log.ERROR, "Order", "No Items in the Order");
emptyOrders();
} else
updateBentoUI(false);
if (mCurrentUser == null)
onBackPressed();
else {
getCurrentOrder();

if (SharedPreferencesUtil.getBooleanPreference(SharedPreferencesUtil.IS_ORDER_AHEAD_MENU))
setOAHashTimer(BentoNowUtils.showOATimer(mMenu));
if (mOrder == null || mOrder.OrderItems == null || mOrder.OrderItems.isEmpty()) {
Crashlytics.log(Log.ERROR, "Order", "No Items in the Order");
emptyOrders();
} else
updateBentoUI(false);

if (SharedPreferencesUtil.getBooleanPreference(SharedPreferencesUtil.IS_ORDER_AHEAD_MENU))
setOAHashTimer(BentoNowUtils.showOATimer(mMenu));
}
super.onResume();
}

Expand Down

0 comments on commit ae0a77e

Please sign in to comment.