Loading core/java/com/android/internal/policy/PhoneWindow.java +5 −1 Original line number Diff line number Diff line Loading @@ -333,6 +333,8 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { private long mBackgroundFadeDurationMillis = -1; private Boolean mSharedElementsUseOverlay; private Boolean mAllowFloatingWindowsFillScreen; private boolean mIsStartingWindow; private int mTheme = -1; Loading Loading @@ -361,6 +363,8 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { mRenderShadowsInCompositor = Settings.Global.getInt(context.getContentResolver(), DEVELOPMENT_RENDER_SHADOWS_IN_COMPOSITOR, 1) != 0; mProxyOnBackInvokedDispatcher = new ProxyOnBackInvokedDispatcher(context); mAllowFloatingWindowsFillScreen = context.getResources().getBoolean( com.android.internal.R.bool.config_allowFloatingWindowsFillScreen); } /** Loading Loading @@ -2422,7 +2426,7 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { mIsFloating = a.getBoolean(R.styleable.Window_windowIsFloating, false); int flagsToUpdate = (FLAG_LAYOUT_IN_SCREEN|FLAG_LAYOUT_INSET_DECOR) & (~getForcedWindowFlags()); if (mIsFloating) { if (mIsFloating && !mAllowFloatingWindowsFillScreen) { setLayout(WRAP_CONTENT, WRAP_CONTENT); setFlags(0, flagsToUpdate); } else { Loading core/res/res/values-watch/config.xml +4 −0 Original line number Diff line number Diff line Loading @@ -77,4 +77,8 @@ <!-- Default hyphenation frequency setting (0=NONE, 1=NORMAL, 2=FULL). --> <item name="config_preferredHyphenationFrequency" format="integer" type="dimen">1</item> <!-- Floating windows can be fullscreen (i.e. windowIsFloating can still have fullscreen window that does not wrap content). --> <bool name="config_allowFloatingWindowsFillScreen">true</bool> </resources> core/res/res/values/config.xml +4 −0 Original line number Diff line number Diff line Loading @@ -6699,6 +6699,10 @@ <!-- Whether unlocking and waking a device are sequenced --> <bool name="config_orderUnlockAndWake">false</bool> <!-- Floating windows can be fullscreen (i.e. windowIsFloating can still have fullscreen window that does not wrap content). --> <bool name="config_allowFloatingWindowsFillScreen">false</bool> <!-- Whether scroll haptic feedback is enabled for rotary encoder scrolls on {@link MotionEvent#AXIS_SCROLL} generated by {@link InputDevice#SOURCE_ROTARY_ENCODER} devices. --> Loading core/res/res/values/symbols.xml +3 −0 Original line number Diff line number Diff line Loading @@ -5226,6 +5226,9 @@ <!-- Whether we order unlocking and waking --> <java-symbol type="bool" name="config_orderUnlockAndWake" /> <!-- Allow windowIsFloating to fill screen. --> <java-symbol type="bool" name="config_allowFloatingWindowsFillScreen" /> <!-- External TV Input Logging Configs --> <java-symbol type="bool" name="config_tvExternalInputLoggingDisplayNameFilterEnabled" /> <java-symbol type="array" name="config_tvExternalInputLoggingDeviceOnScreenDisplayNames" /> Loading Loading
core/java/com/android/internal/policy/PhoneWindow.java +5 −1 Original line number Diff line number Diff line Loading @@ -333,6 +333,8 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { private long mBackgroundFadeDurationMillis = -1; private Boolean mSharedElementsUseOverlay; private Boolean mAllowFloatingWindowsFillScreen; private boolean mIsStartingWindow; private int mTheme = -1; Loading Loading @@ -361,6 +363,8 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { mRenderShadowsInCompositor = Settings.Global.getInt(context.getContentResolver(), DEVELOPMENT_RENDER_SHADOWS_IN_COMPOSITOR, 1) != 0; mProxyOnBackInvokedDispatcher = new ProxyOnBackInvokedDispatcher(context); mAllowFloatingWindowsFillScreen = context.getResources().getBoolean( com.android.internal.R.bool.config_allowFloatingWindowsFillScreen); } /** Loading Loading @@ -2422,7 +2426,7 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { mIsFloating = a.getBoolean(R.styleable.Window_windowIsFloating, false); int flagsToUpdate = (FLAG_LAYOUT_IN_SCREEN|FLAG_LAYOUT_INSET_DECOR) & (~getForcedWindowFlags()); if (mIsFloating) { if (mIsFloating && !mAllowFloatingWindowsFillScreen) { setLayout(WRAP_CONTENT, WRAP_CONTENT); setFlags(0, flagsToUpdate); } else { Loading
core/res/res/values-watch/config.xml +4 −0 Original line number Diff line number Diff line Loading @@ -77,4 +77,8 @@ <!-- Default hyphenation frequency setting (0=NONE, 1=NORMAL, 2=FULL). --> <item name="config_preferredHyphenationFrequency" format="integer" type="dimen">1</item> <!-- Floating windows can be fullscreen (i.e. windowIsFloating can still have fullscreen window that does not wrap content). --> <bool name="config_allowFloatingWindowsFillScreen">true</bool> </resources>
core/res/res/values/config.xml +4 −0 Original line number Diff line number Diff line Loading @@ -6699,6 +6699,10 @@ <!-- Whether unlocking and waking a device are sequenced --> <bool name="config_orderUnlockAndWake">false</bool> <!-- Floating windows can be fullscreen (i.e. windowIsFloating can still have fullscreen window that does not wrap content). --> <bool name="config_allowFloatingWindowsFillScreen">false</bool> <!-- Whether scroll haptic feedback is enabled for rotary encoder scrolls on {@link MotionEvent#AXIS_SCROLL} generated by {@link InputDevice#SOURCE_ROTARY_ENCODER} devices. --> Loading
core/res/res/values/symbols.xml +3 −0 Original line number Diff line number Diff line Loading @@ -5226,6 +5226,9 @@ <!-- Whether we order unlocking and waking --> <java-symbol type="bool" name="config_orderUnlockAndWake" /> <!-- Allow windowIsFloating to fill screen. --> <java-symbol type="bool" name="config_allowFloatingWindowsFillScreen" /> <!-- External TV Input Logging Configs --> <java-symbol type="bool" name="config_tvExternalInputLoggingDisplayNameFilterEnabled" /> <java-symbol type="array" name="config_tvExternalInputLoggingDeviceOnScreenDisplayNames" /> Loading