From b2eb67b2860c26b7ab733bd9ed59bea050b4a47a Mon Sep 17 00:00:00 2001 From: Jason Monk Date: Tue, 11 Jul 2017 10:13:31 -0400 Subject: [PATCH] Fix zen panel theming The theme of the panel might be different than sysui now, so it needs to use the right context. Test: visual Change-Id: Ic647421113f6721e63e69afc2b9c5d6c5b0e86f2 Fixes: 63530105 --- .../SystemUI/src/com/android/systemui/volume/ZenModePanel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.java b/packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.java index ecdea4f442b27..4716552e94a16 100644 --- a/packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.java +++ b/packages/SystemUI/src/com/android/systemui/volume/ZenModePanel.java @@ -144,7 +144,7 @@ public class ZenModePanel extends FrameLayout { super(context, attrs); mContext = context; mPrefs = new ZenPrefs(); - mInflater = LayoutInflater.from(mContext.getApplicationContext()); + mInflater = LayoutInflater.from(mContext); mForeverId = Condition.newId(mContext).appendPath("forever").build(); mConfigurableTexts = new ConfigurableTexts(mContext); mVoiceCapable = Util.isVoiceCapable(mContext);