Loading core/java/android/app/Activity.java +5 −0 Original line number Diff line number Diff line Loading @@ -745,6 +745,11 @@ public class Activity extends ContextThemeWrapper public View findViewById(int id) { return Activity.this.findViewById(id); } @Override public boolean hasView() { Window window = Activity.this.getWindow(); return (window != null && window.peekDecorView() != null); } }; // Most recent call to requestVisibleBehind(). Loading core/java/android/app/BackStackRecord.java +6 −0 Original line number Diff line number Diff line Loading @@ -868,6 +868,9 @@ final class BackStackRecord extends FragmentTransaction implements */ private void calculateFragments(SparseArray<Fragment> firstOutFragments, SparseArray<Fragment> lastInFragments) { if (!mManager.mContainer.hasView()) { return; // nothing to see, so no transitions } Op op = mHead; while (op != null) { switch (op.cmd) { Loading Loading @@ -923,6 +926,9 @@ final class BackStackRecord extends FragmentTransaction implements */ public void calculateBackFragments(SparseArray<Fragment> firstOutFragments, SparseArray<Fragment> lastInFragments) { if (!mManager.mContainer.hasView()) { return; // nothing to see, so no transitions } Op op = mHead; while (op != null) { switch (op.cmd) { Loading core/java/android/app/Fragment.java +5 −0 Original line number Diff line number Diff line Loading @@ -2015,6 +2015,11 @@ public class Fragment implements ComponentCallbacks2, OnCreateContextMenuListene } return mView.findViewById(id); } @Override public boolean hasView() { return (mView != null); } }, this); } Loading core/java/android/app/FragmentManager.java +1 −0 Original line number Diff line number Diff line Loading @@ -395,6 +395,7 @@ final class FragmentManagerState implements Parcelable { */ interface FragmentContainer { public View findViewById(int id); public boolean hasView(); } /** Loading Loading
core/java/android/app/Activity.java +5 −0 Original line number Diff line number Diff line Loading @@ -745,6 +745,11 @@ public class Activity extends ContextThemeWrapper public View findViewById(int id) { return Activity.this.findViewById(id); } @Override public boolean hasView() { Window window = Activity.this.getWindow(); return (window != null && window.peekDecorView() != null); } }; // Most recent call to requestVisibleBehind(). Loading
core/java/android/app/BackStackRecord.java +6 −0 Original line number Diff line number Diff line Loading @@ -868,6 +868,9 @@ final class BackStackRecord extends FragmentTransaction implements */ private void calculateFragments(SparseArray<Fragment> firstOutFragments, SparseArray<Fragment> lastInFragments) { if (!mManager.mContainer.hasView()) { return; // nothing to see, so no transitions } Op op = mHead; while (op != null) { switch (op.cmd) { Loading Loading @@ -923,6 +926,9 @@ final class BackStackRecord extends FragmentTransaction implements */ public void calculateBackFragments(SparseArray<Fragment> firstOutFragments, SparseArray<Fragment> lastInFragments) { if (!mManager.mContainer.hasView()) { return; // nothing to see, so no transitions } Op op = mHead; while (op != null) { switch (op.cmd) { Loading
core/java/android/app/Fragment.java +5 −0 Original line number Diff line number Diff line Loading @@ -2015,6 +2015,11 @@ public class Fragment implements ComponentCallbacks2, OnCreateContextMenuListene } return mView.findViewById(id); } @Override public boolean hasView() { return (mView != null); } }, this); } Loading
core/java/android/app/FragmentManager.java +1 −0 Original line number Diff line number Diff line Loading @@ -395,6 +395,7 @@ final class FragmentManagerState implements Parcelable { */ interface FragmentContainer { public View findViewById(int id); public boolean hasView(); } /** Loading