diff --git a/app/src/main/java/eu/faircode/email/AdapterOperation.java b/app/src/main/java/eu/faircode/email/AdapterOperation.java index c2c2f0090b..87fd760db9 100644 --- a/app/src/main/java/eu/faircode/email/AdapterOperation.java +++ b/app/src/main/java/eu/faircode/email/AdapterOperation.java @@ -123,6 +123,11 @@ public class AdapterOperation extends RecyclerView.Adapter implements LifecycleObserver { } } - protected T onLoad(Context context, Bundle args) throws Throwable { - // Be careful not to access members in outer scopes - return null; - } + protected abstract T onLoad(Context context, Bundle args) throws Throwable; protected void onLoaded(Bundle args, T data) { } - protected void onException(Bundle args, Throwable ex) { - } + protected abstract void onException(Bundle args, Throwable ex); private static class Result { Throwable ex;