mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 06:38:29 +02:00
Refactoring
This commit is contained in:
@@ -122,6 +122,14 @@ public class FragmentWebView extends FragmentBase {
|
||||
|
||||
registerForContextMenu(webview);
|
||||
|
||||
onLoad();
|
||||
|
||||
((ActivityBase) getActivity()).addBackPressedListener(onBackPressedListener);
|
||||
|
||||
return view;
|
||||
}
|
||||
|
||||
private void onLoad() {
|
||||
Bundle args = getArguments();
|
||||
if (args.containsKey("url")) {
|
||||
String url = args.getString("url");
|
||||
@@ -188,10 +196,6 @@ public class FragmentWebView extends FragmentBase {
|
||||
}
|
||||
}.execute(this, args, "webview:format");
|
||||
}
|
||||
|
||||
((ActivityBase) getActivity()).addBackPressedListener(onBackPressedListener);
|
||||
|
||||
return view;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user