fix app crashing when fragment has saved state

This commit is contained in:
Juby210 2020-08-16 22:27:29 +00:00
parent 789000429a
commit 86e435d1e3

View file

@ -71,6 +71,12 @@ diff -crBN from/smali/com/cutthecord/refreshView.smali to/smali/com/cutthecord/r
+
+ if-eqz v0, :cond_0
+
+ invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->isStateSaved()Z
+
+ move-result v1
+
+ if-nez v1, :cond_0
+
+ invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->getFragmentManager()Landroidx/fragment/app/FragmentManager;
+
+ move-result-object v1