Esempio n. 1
0
    @Override
    public void onError(FirebaseError firebaseError) {
      mResultListener.onFinish();

      int errCode = firebaseError.getCode();
      if (errCode == FirebaseError.USER_DOES_NOT_EXIST) {
        mResultListener.onSuccess();
      } else {
        mResultListener.onError(firebaseError.toException(), firebaseError.getMessage());
      }
    }
Esempio n. 2
0
 @Override
 public void onCancelled(FirebaseError firebaseError) {
   mValueListener.onFinish();
   mValueListener.onError(firebaseError.toException(), firebaseError.getMessage());
 }