Monitor deleted selected messages

This commit is contained in:
M66B
2020-05-31 14:27:09 +02:00
parent 8a5dafc1fd
commit 19757af886
3 changed files with 45 additions and 23 deletions

View File

@@ -3111,14 +3111,6 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
updateState(folders);
}
});
db.message().liveHiddenFolder(null, type).observe(getViewLifecycleOwner(), new Observer<List<Long>>() {
@Override
public void onChanged(List<Long> ids) {
if (ids != null && selectionTracker != null)
for (long id : ids)
selectionTracker.deselect(id);
}
});
break;
case FOLDER:
@@ -3132,14 +3124,6 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
updateState(folders);
}
});
db.message().liveHiddenFolder(folder, null).observe(getViewLifecycleOwner(), new Observer<List<Long>>() {
@Override
public void onChanged(List<Long> ids) {
if (ids != null && selectionTracker != null)
for (long id : ids)
selectionTracker.deselect(id);
}
});
break;
case THREAD: