Refactoring

This commit is contained in:
M66B 2024-04-11 17:28:12 +02:00
parent 9b317defe5
commit bc76f5b391
1 changed files with 2 additions and 3 deletions

View File

@ -5250,9 +5250,6 @@ public class FragmentMessages extends FragmentBase
db.folder().liveUnified(type).observe(getViewLifecycleOwner(), new Observer<List<TupleFolderEx>>() {
@Override
public void onChanged(List<TupleFolderEx> folders) {
if (folders == null)
folders = new ArrayList<>();
updateState(folders);
}
});
@ -6838,6 +6835,8 @@ public class FragmentMessages extends FragmentBase
}
private void updateState(List<TupleFolderEx> folders) {
if (folders == null)
folders = new ArrayList<>();
Log.i("Folder state updated count=" + folders.size());
// Get state