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

@@ -231,7 +231,7 @@ public class FragmentIdentity extends FragmentEx {
long id = (args == null ? -1 : args.getLong("id", -1));
// Observer
DB.getInstance(getContext()).identity().liveIdentity(id).observe(this, new Observer<EntityIdentity>() {
DB.getInstance(getContext()).identity().liveIdentity(id).observe(getViewLifecycleOwner(), new Observer<EntityIdentity>() {
@Override
public void onChanged(@Nullable EntityIdentity identity) {
etName.setText(identity == null ? null : identity.name);