mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-06 17:13:23 +02:00
Another ugly workaround
This commit is contained in:
@@ -441,7 +441,7 @@ public class FragmentMessages extends FragmentBase {
|
||||
@Override
|
||||
public void onSelectionChanged() {
|
||||
SelectionTracker tracker = selectionTracker;
|
||||
if (tracker == null)
|
||||
if (tracker == null) // destroyed
|
||||
return;
|
||||
|
||||
FragmentActivity activity = getActivity();
|
||||
@@ -476,6 +476,8 @@ public class FragmentMessages extends FragmentBase {
|
||||
|
||||
@Override
|
||||
public void onDestroy() {
|
||||
if (selectionPredicate != null)
|
||||
selectionPredicate.destroy();
|
||||
selectionTracker = null;
|
||||
super.onDestroy();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user