mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 06:38:29 +02:00
Refactoring
This commit is contained in:
@@ -128,7 +128,7 @@ public class FragmentWebView extends FragmentEx {
|
||||
} else if (args.containsKey("id")) {
|
||||
new SimpleTask<String>() {
|
||||
@Override
|
||||
protected String onLoad(Context context, Bundle args) throws Throwable {
|
||||
protected String onExecute(Context context, Bundle args) throws Throwable {
|
||||
long id = args.getLong("id");
|
||||
|
||||
String html = EntityMessage.read(context, id);
|
||||
@@ -174,7 +174,7 @@ public class FragmentWebView extends FragmentEx {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onLoaded(Bundle args, String html) {
|
||||
protected void onExecuted(Bundle args, String html) {
|
||||
String from = args.getString("from");
|
||||
webview.loadDataWithBaseURL("email://", html, "text/html", "UTF-8", null);
|
||||
setSubtitle(from);
|
||||
@@ -184,7 +184,7 @@ public class FragmentWebView extends FragmentEx {
|
||||
protected void onException(Bundle args, Throwable ex) {
|
||||
Helper.unexpectedError(getContext(), getViewLifecycleOwner(), ex);
|
||||
}
|
||||
}.load(this, args);
|
||||
}.execute(this, args);
|
||||
}
|
||||
|
||||
((ActivityBase) getActivity()).addBackPressedListener(onBackPressedListener);
|
||||
|
||||
Reference in New Issue
Block a user