Prevent crash

This commit is contained in:
M66B
2018-11-06 07:30:41 +00:00
parent 6c72fe8724
commit b678d9ac34
3 changed files with 4 additions and 8 deletions

View File

@@ -1099,7 +1099,7 @@ public class FragmentMessages extends FragmentEx {
}
@Override
public void onError(Context context, Throwable ex) {
public void onError(Throwable ex) {
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.RESUMED))
new DialogBuilderLifecycle(getContext(), getViewLifecycleOwner())
.setMessage(Helper.formatThrowable(ex))
@@ -1143,7 +1143,7 @@ public class FragmentMessages extends FragmentEx {
}
@Override
public void onError(Context context, Throwable ex) {
public void onError(Throwable ex) {
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.RESUMED))
new DialogBuilderLifecycle(getContext(), getViewLifecycleOwner())
.setMessage(Helper.formatThrowable(ex))