From 5f8d3f813d6d580b060a783c8271b6cec3794d30 Mon Sep 17 00:00:00 2001 From: Bryan Owens Date: Sat, 7 May 2016 20:51:27 -0500 Subject: Themes: Expose Power Dialogs This will give themes the ability to invert the three power dialogs without editing a main resource Change-Id: Ibeab94add8ce8c18955576dc49c441883feb18d6 Signed-off-by: Bryan Owens --- services/core/java/com/android/server/policy/GlobalActions.java | 2 +- services/core/java/com/android/server/power/ShutdownThread.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'services/core') diff --git a/services/core/java/com/android/server/policy/GlobalActions.java b/services/core/java/com/android/server/policy/GlobalActions.java index c8a6135..34fc905 100644 --- a/services/core/java/com/android/server/policy/GlobalActions.java +++ b/services/core/java/com/android/server/policy/GlobalActions.java @@ -293,7 +293,7 @@ class GlobalActions implements DialogInterface.OnDismissListener, DialogInterfac private Context getUiContext() { if (mUiContext == null) { mUiContext = ThemeUtils.createUiContext(mContext); - mUiContext.setTheme(android.R.style.Theme_DeviceDefault_Light_DarkActionBar); + mUiContext.setTheme(com.android.internal.R.style.Theme_Power_Dialog); } return mUiContext != null ? mUiContext : mContext; } diff --git a/services/core/java/com/android/server/power/ShutdownThread.java b/services/core/java/com/android/server/power/ShutdownThread.java index 5062244..36a9ca2 100644 --- a/services/core/java/com/android/server/power/ShutdownThread.java +++ b/services/core/java/com/android/server/power/ShutdownThread.java @@ -1006,7 +1006,7 @@ public final class ShutdownThread extends Thread { if (context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_TELEVISION)) { uiContext.setTheme(com.android.internal.R.style.Theme_Leanback_Dialog_Alert); } else { - uiContext.setTheme(android.R.style.Theme_DeviceDefault_Light_DarkActionBar); + uiContext.setTheme(com.android.internal.R.style.Theme_Power_Dialog); } } return uiContext != null ? uiContext : context; -- cgit v1.1