Lifecycle aware unexpected error handling

This commit is contained in:
M66B
2018-12-01 13:04:41 +01:00
parent 1d2ee534a7
commit 2665c33f68
16 changed files with 90 additions and 89 deletions

View File

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