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

@@ -101,7 +101,7 @@ public class FragmentFolder extends FragmentEx {
long id = (args == null ? -1 : args.getLong("id"));
// Observe
DB.getInstance(getContext()).folder().liveFolder(id).observe(this, new Observer<EntityFolder>() {
DB.getInstance(getContext()).folder().liveFolder(id).observe(getViewLifecycleOwner(), new Observer<EntityFolder>() {
@Override
public void onChanged(@Nullable EntityFolder folder) {
if (folder != null) {