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
This commit is contained in:
Jason Monk
2017-07-11 10:13:31 -04:00
parent 8b44d3722d
commit b2eb67b286

View File

@@ -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);