mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 02:50:56 +01:00
Lifecycle aware unexpected error handling
This commit is contained in:
@@ -85,7 +85,7 @@ public class FragmentWebView extends FragmentEx {
|
||||
setSubtitle(url);
|
||||
return false;
|
||||
} else {
|
||||
Helper.view(getContext(), Uri.parse(url));
|
||||
Helper.view(getContext(), getViewLifecycleOwner(), Uri.parse(url));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -180,7 +180,7 @@ public class FragmentWebView extends FragmentEx {
|
||||
|
||||
@Override
|
||||
protected void onException(Bundle args, Throwable ex) {
|
||||
Helper.unexpectedError(getContext(), ex);
|
||||
Helper.unexpectedError(getContext(), getViewLifecycleOwner(), ex);
|
||||
}
|
||||
}.load(this, args);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user