Loading packages/SystemUI/res/values-land/dimens.xml +6 −0 Original line number Diff line number Diff line Loading @@ -76,4 +76,10 @@ <!-- Bouncer user switcher margins --> <dimen name="bouncer_user_switcher_view_mode_user_switcher_bottom_margin">0dp</dimen> <dimen name="bouncer_user_switcher_view_mode_view_flipper_bottom_margin">0dp</dimen> <!-- Power Menu Lite --> <!-- These values are for small screen landscape. For larger landscape screens, they are overlaid --> <dimen name="global_actions_button_size">72dp</dimen> <dimen name="global_actions_button_padding">26dp</dimen> </resources> packages/SystemUI/res/values-sw410dp-land/dimens.xml +4 −0 Original line number Diff line number Diff line Loading @@ -18,4 +18,8 @@ <!-- Lock pattern view size, align sysui biometric_auth_pattern_view_size --> <dimen name="biometric_auth_pattern_view_size">248dp</dimen> <dimen name="biometric_auth_pattern_view_max_size">348dp</dimen> <!-- Power Menu Lite --> <dimen name="global_actions_button_size">96dp</dimen> <dimen name="global_actions_button_padding">38dp</dimen> </resources> No newline at end of file packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialogLite.java +5 −1 Original line number Diff line number Diff line Loading @@ -249,6 +249,7 @@ public class GlobalActionsDialogLite implements DialogInterface.OnDismissListene private int mDialogPressDelay = DIALOG_PRESS_DELAY; // ms protected Handler mMainHandler; private int mSmallestScreenWidthDp; private int mOrientation; private final Optional<CentralSurfaces> mCentralSurfacesOptional; private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; private final DialogLaunchAnimator mDialogLaunchAnimator; Loading Loading @@ -391,6 +392,7 @@ public class GlobalActionsDialogLite implements DialogInterface.OnDismissListene mRingerModeTracker = ringerModeTracker; mMainHandler = handler; mSmallestScreenWidthDp = resources.getConfiguration().smallestScreenWidthDp; mOrientation = resources.getConfiguration().orientation; mCentralSurfacesOptional = centralSurfacesOptional; mKeyguardUpdateMonitor = keyguardUpdateMonitor; mDialogLaunchAnimator = dialogLaunchAnimator; Loading Loading @@ -744,8 +746,10 @@ public class GlobalActionsDialogLite implements DialogInterface.OnDismissListene @Override public void onConfigChanged(Configuration newConfig) { if (mDialog != null && mDialog.isShowing() && (newConfig.smallestScreenWidthDp != mSmallestScreenWidthDp)) { && (newConfig.smallestScreenWidthDp != mSmallestScreenWidthDp || newConfig.orientation != mOrientation)) { mSmallestScreenWidthDp = newConfig.smallestScreenWidthDp; mOrientation = newConfig.orientation; mDialog.refreshDialog(); } } Loading Loading
packages/SystemUI/res/values-land/dimens.xml +6 −0 Original line number Diff line number Diff line Loading @@ -76,4 +76,10 @@ <!-- Bouncer user switcher margins --> <dimen name="bouncer_user_switcher_view_mode_user_switcher_bottom_margin">0dp</dimen> <dimen name="bouncer_user_switcher_view_mode_view_flipper_bottom_margin">0dp</dimen> <!-- Power Menu Lite --> <!-- These values are for small screen landscape. For larger landscape screens, they are overlaid --> <dimen name="global_actions_button_size">72dp</dimen> <dimen name="global_actions_button_padding">26dp</dimen> </resources>
packages/SystemUI/res/values-sw410dp-land/dimens.xml +4 −0 Original line number Diff line number Diff line Loading @@ -18,4 +18,8 @@ <!-- Lock pattern view size, align sysui biometric_auth_pattern_view_size --> <dimen name="biometric_auth_pattern_view_size">248dp</dimen> <dimen name="biometric_auth_pattern_view_max_size">348dp</dimen> <!-- Power Menu Lite --> <dimen name="global_actions_button_size">96dp</dimen> <dimen name="global_actions_button_padding">38dp</dimen> </resources> No newline at end of file
packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialogLite.java +5 −1 Original line number Diff line number Diff line Loading @@ -249,6 +249,7 @@ public class GlobalActionsDialogLite implements DialogInterface.OnDismissListene private int mDialogPressDelay = DIALOG_PRESS_DELAY; // ms protected Handler mMainHandler; private int mSmallestScreenWidthDp; private int mOrientation; private final Optional<CentralSurfaces> mCentralSurfacesOptional; private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; private final DialogLaunchAnimator mDialogLaunchAnimator; Loading Loading @@ -391,6 +392,7 @@ public class GlobalActionsDialogLite implements DialogInterface.OnDismissListene mRingerModeTracker = ringerModeTracker; mMainHandler = handler; mSmallestScreenWidthDp = resources.getConfiguration().smallestScreenWidthDp; mOrientation = resources.getConfiguration().orientation; mCentralSurfacesOptional = centralSurfacesOptional; mKeyguardUpdateMonitor = keyguardUpdateMonitor; mDialogLaunchAnimator = dialogLaunchAnimator; Loading Loading @@ -744,8 +746,10 @@ public class GlobalActionsDialogLite implements DialogInterface.OnDismissListene @Override public void onConfigChanged(Configuration newConfig) { if (mDialog != null && mDialog.isShowing() && (newConfig.smallestScreenWidthDp != mSmallestScreenWidthDp)) { && (newConfig.smallestScreenWidthDp != mSmallestScreenWidthDp || newConfig.orientation != mOrientation)) { mSmallestScreenWidthDp = newConfig.smallestScreenWidthDp; mOrientation = newConfig.orientation; mDialog.refreshDialog(); } } Loading