Exemplo n.º 1
0
 /*
  * TODO Remove Toasts from this class and replace them with something useful
  * This is a hack more than anything else. We shouldn't use Toasts if we're going to change the message all the time
  */
 private void showToast(int resourceId, boolean error) {
   if (error) {
     ToastUtil.showError(getActivity().getApplicationContext(), resourceId);
   } else {
     ToastUtil.showSuccess(getActivity().getApplicationContext(), resourceId);
   }
 }