Prevent crash

This commit is contained in:
M66B 2022-04-23 10:21:13 +02:00
parent affd4e898b
commit 6dfc291341
2 changed files with 4 additions and 0 deletions

View File

@ -1993,6 +1993,8 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
@Override
public void run() {
try {
if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
return;
if (adapter != null)
adapter.notifyItemChanged(pos);
} catch (Throwable ex) {

View File

@ -807,6 +807,8 @@ public class FragmentSetup extends FragmentBase {
@Override
public void run() {
try {
if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
return;
Rect rect = new Rect(
vwWelcome.getLeft(),
ibWelcome.getTop(),