Refactoring

This commit is contained in:
M66B
2019-06-13 08:10:47 +02:00
parent a7ea56b5a0
commit ff11c6a9e8
2 changed files with 3 additions and 3 deletions

View File

@@ -2725,7 +2725,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
}
@Override
public void onError(Throwable ex) {
public void onException(@NonNull Throwable ex) {
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.RESUMED))
if (ex instanceof IllegalStateException) {
Snackbar snackbar = Snackbar.make(view, ex.getMessage(), Snackbar.LENGTH_LONG);