mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-03 11:28:41 +01:00
Fixed flickering
This is why AndroidX was required
This commit is contained in:
@@ -90,7 +90,7 @@ public class FragmentFolders extends FragmentEx {
|
||||
DB db = DB.getInstance(getContext());
|
||||
|
||||
// Observe account
|
||||
db.account().liveAccount(account).observe(this, new Observer<EntityAccount>() {
|
||||
db.account().liveAccount(account).observe(getViewLifecycleOwner(), new Observer<EntityAccount>() {
|
||||
@Override
|
||||
public void onChanged(@Nullable EntityAccount account) {
|
||||
setSubtitle(account.name);
|
||||
@@ -98,7 +98,7 @@ public class FragmentFolders extends FragmentEx {
|
||||
});
|
||||
|
||||
// Observe folders
|
||||
db.folder().liveFolders(account).observe(this, new Observer<List<TupleFolderEx>>() {
|
||||
db.folder().liveFolders(account).observe(getViewLifecycleOwner(), new Observer<List<TupleFolderEx>>() {
|
||||
@Override
|
||||
public void onChanged(@Nullable List<TupleFolderEx> folders) {
|
||||
adapter.set(folders);
|
||||
|
||||
Reference in New Issue
Block a user