mirror of https://github.com/M66B/FairEmail.git
Prevent crash
This commit is contained in:
parent
affd4e898b
commit
6dfc291341
|
@ -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) {
|
||||
|
|
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue