summaryrefslogtreecommitdiffstats
path: root/core/java/android/widget
diff options
context:
space:
mode:
authord34d <clark@cyngn.com>2016-01-15 12:07:17 -0800
committerClark Scheff <clark@cyngn.com>2016-01-17 08:27:34 -0800
commit12245b83014eda3359c3194ada8f5a00e24c4bb6 (patch)
treedf61fad66e877c953a21ac46547715a0b71ea574 /core/java/android/widget
parentba54dd4e7f08fcc91e53e430b6b30c66fa76dc43 (diff)
downloadframeworks_base-12245b83014eda3359c3194ada8f5a00e24c4bb6.zip
frameworks_base-12245b83014eda3359c3194ada8f5a00e24c4bb6.tar.gz
frameworks_base-12245b83014eda3359c3194ada8f5a00e24c4bb6.tar.bz2
Themes: Fix applying theme for notifications
Notifications should be inflated using the current theme applied to SystemUI. This was not happening because the Context created when applying a RemoteView was returning a cahced context rather than one with the supplied theme applied. This patch also moves mCurrentTheme into BaseStatusBar so it can be used when inflating the remote views for notifications. Change-Id: I577ae30fc02028c7e497cd774f79029f8a045d1f TICKET: CYNGNOS-1608
Diffstat (limited to 'core/java/android/widget')
-rw-r--r--core/java/android/widget/RemoteViews.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/widget/RemoteViews.java b/core/java/android/widget/RemoteViews.java
index e9ae071..6c9c0e3 100644
--- a/core/java/android/widget/RemoteViews.java
+++ b/core/java/android/widget/RemoteViews.java
@@ -2815,7 +2815,8 @@ public class RemoteViews implements Parcelable, Filter {
private Context getContextForResources(Context context, String themePackageName) {
if (mApplication != null) {
if (context.getUserId() == UserHandle.getUserId(mApplication.uid)
- && context.getPackageName().equals(mApplication.packageName)) {
+ && context.getPackageName().equals(mApplication.packageName)
+ && themePackageName == null) {
return context;
}
try {