Loading core/java/com/android/internal/policy/PhoneWindow.java +21 −6 Original line number Diff line number Diff line Loading @@ -537,9 +537,14 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { } mContentParent.requestApplyInsets(); final Callback cb = getCallback(); if (cb != null && !isDestroyed()) { if (!isDestroyed()) { if (cb != null) { cb.onContentChanged(); } if (mDecorContentParent != null) { mDecorContentParent.notifyContentChanged(); } } mContentParentExplicitlySet = true; } Loading Loading @@ -568,9 +573,14 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { } mContentParent.requestApplyInsets(); final Callback cb = getCallback(); if (cb != null && !isDestroyed()) { if (!isDestroyed()) { if (cb != null) { cb.onContentChanged(); } if (mDecorContentParent != null) { mDecorContentParent.notifyContentChanged(); } } mContentParentExplicitlySet = true; } Loading @@ -586,9 +596,14 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { mContentParent.addView(view, params); mContentParent.requestApplyInsets(); final Callback cb = getCallback(); if (cb != null && !isDestroyed()) { if (!isDestroyed()) { if (cb != null) { cb.onContentChanged(); } if (mDecorContentParent != null) { mDecorContentParent.notifyContentChanged(); } } } @Override Loading core/java/com/android/internal/widget/ActionBarOverlayLayout.java +7 −0 Original line number Diff line number Diff line Loading @@ -898,6 +898,13 @@ public class ActionBarOverlayLayout extends ViewGroup implements DecorContentPar mDecorToolbar.dismissPopupMenus(); } @Override public void notifyContentChanged() { mLastBaseContentInsets.setEmpty(); mLastBaseInnerInsets = WindowInsets.CONSUMED; mLastInnerInsets = WindowInsets.CONSUMED; } public static class LayoutParams extends MarginLayoutParams { public LayoutParams(Context c, AttributeSet attrs) { super(c, attrs); Loading core/java/com/android/internal/widget/DecorContentParent.java +2 −0 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ import android.os.Parcelable; import android.util.SparseArray; import android.view.Menu; import android.view.Window; import com.android.internal.view.menu.MenuPresenter; /** Loading Loading @@ -49,4 +50,5 @@ public interface DecorContentParent { void saveToolbarHierarchyState(SparseArray<Parcelable> toolbarStates); void restoreToolbarHierarchyState(SparseArray<Parcelable> toolbarStates); void dismissPopups(); void notifyContentChanged(); } Loading
core/java/com/android/internal/policy/PhoneWindow.java +21 −6 Original line number Diff line number Diff line Loading @@ -537,9 +537,14 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { } mContentParent.requestApplyInsets(); final Callback cb = getCallback(); if (cb != null && !isDestroyed()) { if (!isDestroyed()) { if (cb != null) { cb.onContentChanged(); } if (mDecorContentParent != null) { mDecorContentParent.notifyContentChanged(); } } mContentParentExplicitlySet = true; } Loading Loading @@ -568,9 +573,14 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { } mContentParent.requestApplyInsets(); final Callback cb = getCallback(); if (cb != null && !isDestroyed()) { if (!isDestroyed()) { if (cb != null) { cb.onContentChanged(); } if (mDecorContentParent != null) { mDecorContentParent.notifyContentChanged(); } } mContentParentExplicitlySet = true; } Loading @@ -586,9 +596,14 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { mContentParent.addView(view, params); mContentParent.requestApplyInsets(); final Callback cb = getCallback(); if (cb != null && !isDestroyed()) { if (!isDestroyed()) { if (cb != null) { cb.onContentChanged(); } if (mDecorContentParent != null) { mDecorContentParent.notifyContentChanged(); } } } @Override Loading
core/java/com/android/internal/widget/ActionBarOverlayLayout.java +7 −0 Original line number Diff line number Diff line Loading @@ -898,6 +898,13 @@ public class ActionBarOverlayLayout extends ViewGroup implements DecorContentPar mDecorToolbar.dismissPopupMenus(); } @Override public void notifyContentChanged() { mLastBaseContentInsets.setEmpty(); mLastBaseInnerInsets = WindowInsets.CONSUMED; mLastInnerInsets = WindowInsets.CONSUMED; } public static class LayoutParams extends MarginLayoutParams { public LayoutParams(Context c, AttributeSet attrs) { super(c, attrs); Loading
core/java/com/android/internal/widget/DecorContentParent.java +2 −0 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ import android.os.Parcelable; import android.util.SparseArray; import android.view.Menu; import android.view.Window; import com.android.internal.view.menu.MenuPresenter; /** Loading Loading @@ -49,4 +50,5 @@ public interface DecorContentParent { void saveToolbarHierarchyState(SparseArray<Parcelable> toolbarStates); void restoreToolbarHierarchyState(SparseArray<Parcelable> toolbarStates); void dismissPopups(); void notifyContentChanged(); }