Loading core/java/com/android/internal/policy/PhoneWindow.java +6 −1 Original line number Diff line number Diff line Loading @@ -146,6 +146,9 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { // This is the view in which the window contents are placed. It is either // mDecor itself, or a child of mDecor where the contents go. ViewGroup mContentParent; // Whether the client has explicitly set the content view. If false and mContentParent is not // null, then the content parent was set due to window preservation. private boolean mContentParentExplicitlySet = false; Callback2 mTakeSurfaceCallback; Loading Loading @@ -315,7 +318,7 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { @Override public boolean requestFeature(int featureId) { if (mContentParent != null) { if (mContentParentExplicitlySet) { throw new AndroidRuntimeException("requestFeature() must be called before adding content"); } final int features = getFeatures(); Loading Loading @@ -399,6 +402,7 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { if (cb != null && !isDestroyed()) { cb.onContentChanged(); } mContentParentExplicitlySet = true; } @Override Loading Loading @@ -429,6 +433,7 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { if (cb != null && !isDestroyed()) { cb.onContentChanged(); } mContentParentExplicitlySet = true; } @Override Loading Loading
core/java/com/android/internal/policy/PhoneWindow.java +6 −1 Original line number Diff line number Diff line Loading @@ -146,6 +146,9 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { // This is the view in which the window contents are placed. It is either // mDecor itself, or a child of mDecor where the contents go. ViewGroup mContentParent; // Whether the client has explicitly set the content view. If false and mContentParent is not // null, then the content parent was set due to window preservation. private boolean mContentParentExplicitlySet = false; Callback2 mTakeSurfaceCallback; Loading Loading @@ -315,7 +318,7 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { @Override public boolean requestFeature(int featureId) { if (mContentParent != null) { if (mContentParentExplicitlySet) { throw new AndroidRuntimeException("requestFeature() must be called before adding content"); } final int features = getFeatures(); Loading Loading @@ -399,6 +402,7 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { if (cb != null && !isDestroyed()) { cb.onContentChanged(); } mContentParentExplicitlySet = true; } @Override Loading Loading @@ -429,6 +433,7 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { if (cb != null && !isDestroyed()) { cb.onContentChanged(); } mContentParentExplicitlySet = true; } @Override Loading