Browse Source

Fixed crash

main
M66B 6 years ago
parent
commit
9983addfdd
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      app/src/main/java/eu/faircode/email/BoundaryCallbackMessages.java
  2. +2
    -2
      app/src/main/java/eu/faircode/email/FragmentMessages.java

+ 2
- 2
app/src/main/java/eu/faircode/email/BoundaryCallbackMessages.java View File

@ -66,7 +66,7 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
void onLoaded();
void onError(Throwable ex);
void onError(Context context, Throwable ex);
}
BoundaryCallbackMessages(Context context, LifecycleOwner owner, long folder, String search, IBoundaryCallbackMessages intf) {
@ -177,7 +177,7 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
mainHandler.post(new Runnable() {
@Override
public void run() {
intf.onError(ex);
intf.onError(context, ex);
}
});
} finally {


+ 2
- 2
app/src/main/java/eu/faircode/email/FragmentMessages.java View File

@ -385,8 +385,8 @@ public class FragmentMessages extends FragmentEx {
}
@Override
public void onError(Throwable ex) {
Toast.makeText(getContext(), ex.toString(), Toast.LENGTH_LONG).show();
public void onError(Context context, Throwable ex) {
Toast.makeText(context, ex.toString(), Toast.LENGTH_LONG).show();
}
});


Loading…
Cancel
Save