mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-21 21:57:19 +00:00
Lifecycle fixes
This commit is contained in:
parent
5c3e86cc9a
commit
b32cd2ac62
1 changed files with 4 additions and 0 deletions
|
@ -1892,6 +1892,8 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
|
||||
return;
|
||||
for (Integer pos : changed)
|
||||
adapter.notifyItemChanged(pos);
|
||||
} catch (Throwable ex) {
|
||||
|
@ -1938,6 +1940,8 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
|
||||
return;
|
||||
adapter.notifyItemChanged(p);
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
|
|
Loading…
Reference in a new issue