diff options
| -rw-r--r-- | core/res/res/values-night/values.xml | 2 | ||||
| -rw-r--r-- | packages/SystemUI/res/values/styles.xml | 2 | ||||
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/settings/BrightnessDialog.java | 6 |
3 files changed, 4 insertions, 6 deletions
diff --git a/core/res/res/values-night/values.xml b/core/res/res/values-night/values.xml index 45cf0f0fedb3..a2ad3b90e464 100644 --- a/core/res/res/values-night/values.xml +++ b/core/res/res/values-night/values.xml @@ -32,6 +32,8 @@ <item name="panelColorBackground">@color/material_grey_800</item> </style> + <style name="Theme.DeviceDefault.QuickSettings.Dialog" parent="Theme.DeviceDefault.Dialog" /> + <style name="TextAppearance.Material.Notification"> <item name="textColor">@color/notification_secondary_text_color_dark</item> <item name="textSize">@dimen/notification_text_size</item> diff --git a/packages/SystemUI/res/values/styles.xml b/packages/SystemUI/res/values/styles.xml index 8442dd13a85b..6446367e19a5 100644 --- a/packages/SystemUI/res/values/styles.xml +++ b/packages/SystemUI/res/values/styles.xml @@ -279,7 +279,7 @@ <item name="android:fontFamily">sans-serif</item> </style> - <style name="BaseBrightnessDialogContainer"> + <style name="BaseBrightnessDialogContainer" parent="@style/Theme.SystemUI"> <item name="android:layout_width">match_parent</item> <item name="android:layout_height">wrap_content</item> </style> diff --git a/packages/SystemUI/src/com/android/systemui/settings/BrightnessDialog.java b/packages/SystemUI/src/com/android/systemui/settings/BrightnessDialog.java index 6918a6309ae1..2ae53b5d81fe 100644 --- a/packages/SystemUI/src/com/android/systemui/settings/BrightnessDialog.java +++ b/packages/SystemUI/src/com/android/systemui/settings/BrightnessDialog.java @@ -46,11 +46,7 @@ public class BrightnessDialog extends Activity { window.clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND); window.requestFeature(Window.FEATURE_NO_TITLE); - // Use a dialog theme as the activity theme, but inflate the content as - // the QS content. - ContextThemeWrapper themedContext = new ContextThemeWrapper(this, - com.android.internal.R.style.Theme_DeviceDefault_QuickSettings); - View v = LayoutInflater.from(themedContext).inflate( + View v = LayoutInflater.from(this).inflate( R.layout.quick_settings_brightness_dialog, null); setContentView(v); |