Fixed crash

pull/91/head
M66B 6 years ago
parent 49f7a61717
commit 9983addfdd

@ -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 {

@ -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