You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I always get 'no active order' toast in the Current Order fragment when logged in as a courier even though I created an order successfully when logged in as a customer, note this order is shown successfully in the firebase database.
This code snippet below is from the CURRENTORDERINTERACTOR java class. It shows that I'm getting my issue because orderTimestamp is "empty".
I always get 'no active order' toast in the Current Order fragment when logged in as a courier even though I created an order successfully when logged in as a customer, note this order is shown successfully in the firebase database.
This code snippet below is from the CURRENTORDERINTERACTOR java class. It shows that I'm getting my issue because orderTimestamp is "empty".
public void getOrderData(@NotNull String orderTimestamp) {
if(!orderTimestamp.equals(PREFERENCES_EMPTY))
{FirebaseOpsHelper firebaseOpsHelper = new FirebaseOpsHelper(this);
firebaseOpsHelper.getOrderFromDbWithTimestamp(orderTimestamp);
} else {
mPresenter.sendToast(getInteractorContext().getString(R.string.toast_no_current_order));
mPresenter.hideProgressDialog();
}
}
My question is WHY IS ORDERTIMESTAMP EMPTY
The text was updated successfully, but these errors were encountered: