Loading core/res/res/values/themes_device_defaults.xml +1 −0 Original line number Diff line number Diff line Loading @@ -1733,6 +1733,7 @@ easier. <item name="colorBackground">@color/background_device_default_light</item> <item name="colorBackgroundFloating">@color/background_device_default_light</item> <item name="layout_gravity">center</item> <item name="windowAnimationStyle">@style/Animation.DeviceDefault.Dialog</item> </style> <style name="Theme.DeviceDefault.Notification" parent="@style/Theme.Material.Notification"> Loading services/core/java/com/android/server/am/CarUserSwitchingDialog.java +1 −3 Original line number Diff line number Diff line Loading @@ -66,9 +66,7 @@ final class CarUserSwitchingDialog extends UserSwitchingDialog { setCancelable(false); Resources res = getContext().getResources(); // Custom view due to alignment and font size requirements // TODO (b/145021634): disabled because it's delaying user switch by 3 seconds // getContext() // .setTheme(R.style.Theme_DeviceDefault_Light_Dialog_Alert_UserSwitchingDialog); getContext().setTheme(R.style.Theme_DeviceDefault_Light_Dialog_Alert_UserSwitchingDialog); View view = LayoutInflater.from(getContext()).inflate( R.layout.car_user_switching_dialog, null); Loading services/core/java/com/android/server/am/UserSwitchingDialog.java +2 −1 Original line number Diff line number Diff line Loading @@ -47,7 +47,8 @@ class UserSwitchingDialog extends AlertDialog // Time to wait for the onWindowShown() callback before continuing the user switch private static final int WINDOW_SHOWN_TIMEOUT_MS = 3000; private static final boolean DEBUG = false; // User switching doesn't happen that frequently, so it doesn't hurt to have it always on protected static final boolean DEBUG = true; private final ActivityManagerService mService; private final int mUserId; Loading Loading
core/res/res/values/themes_device_defaults.xml +1 −0 Original line number Diff line number Diff line Loading @@ -1733,6 +1733,7 @@ easier. <item name="colorBackground">@color/background_device_default_light</item> <item name="colorBackgroundFloating">@color/background_device_default_light</item> <item name="layout_gravity">center</item> <item name="windowAnimationStyle">@style/Animation.DeviceDefault.Dialog</item> </style> <style name="Theme.DeviceDefault.Notification" parent="@style/Theme.Material.Notification"> Loading
services/core/java/com/android/server/am/CarUserSwitchingDialog.java +1 −3 Original line number Diff line number Diff line Loading @@ -66,9 +66,7 @@ final class CarUserSwitchingDialog extends UserSwitchingDialog { setCancelable(false); Resources res = getContext().getResources(); // Custom view due to alignment and font size requirements // TODO (b/145021634): disabled because it's delaying user switch by 3 seconds // getContext() // .setTheme(R.style.Theme_DeviceDefault_Light_Dialog_Alert_UserSwitchingDialog); getContext().setTheme(R.style.Theme_DeviceDefault_Light_Dialog_Alert_UserSwitchingDialog); View view = LayoutInflater.from(getContext()).inflate( R.layout.car_user_switching_dialog, null); Loading
services/core/java/com/android/server/am/UserSwitchingDialog.java +2 −1 Original line number Diff line number Diff line Loading @@ -47,7 +47,8 @@ class UserSwitchingDialog extends AlertDialog // Time to wait for the onWindowShown() callback before continuing the user switch private static final int WINDOW_SHOWN_TIMEOUT_MS = 3000; private static final boolean DEBUG = false; // User switching doesn't happen that frequently, so it doesn't hurt to have it always on protected static final boolean DEBUG = true; private final ActivityManagerService mService; private final int mUserId; Loading