Refactoring

This commit is contained in:
M66B
2018-12-31 07:03:48 +00:00
parent 9ab964e659
commit 7ffb44f292
17 changed files with 266 additions and 266 deletions

View File

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