Fixed flickering

This is why AndroidX was required
This commit is contained in:
M66B
2018-08-08 07:11:03 +00:00
parent 10ee7df4b9
commit 7c39cc9cd1
10 changed files with 17 additions and 17 deletions

View File

@@ -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);