summaryrefslogtreecommitdiffstats
path: root/policy
diff options
context:
space:
mode:
authorRicardo Cerqueira <github@cerqueira.org>2012-05-05 18:49:09 +0100
committerRicardo Cerqueira <github@cerqueira.org>2012-05-05 18:49:17 +0100
commite821f5b727ef247a789557badb6640880cf992dd (patch)
treefc74bf9cc07a3eac04166477bed32ee5f9583d40 /policy
parentf0b7008ac173a4402b982b0f50ca3db8b0659bb7 (diff)
parentfd6ee4e7d2f1600021c0d2f47914c01600bd1b97 (diff)
downloadframeworks_base-e821f5b727ef247a789557badb6640880cf992dd.zip
frameworks_base-e821f5b727ef247a789557badb6640880cf992dd.tar.gz
frameworks_base-e821f5b727ef247a789557badb6640880cf992dd.tar.bz2
Merge branch 'themes-4.0' into 'ics'
Change-Id: Idc363f8140be2d252bee2aeba46c944032fb0ae9
Diffstat (limited to 'policy')
-rwxr-xr-xpolicy/src/com/android/internal/policy/impl/PhoneWindowManager.java12
1 files changed, 7 insertions, 5 deletions
diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
index 231606e..9d627ad 100755
--- a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
+++ b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
@@ -1365,13 +1365,15 @@ public class PhoneWindowManager implements WindowManagerPolicy {
Context context = mContext;
//Log.i(TAG, "addStartingWindow " + packageName + ": nonLocalizedLabel="
// + nonLocalizedLabel + " theme=" + Integer.toHexString(theme));
- if (theme != context.getThemeResId() || labelRes != 0) {
- try {
- context = context.createPackageContext(packageName, 0);
+
+
+ try {
+ context = context.createPackageContext(packageName, 0);
+ if (theme != context.getThemeResId()) {
context.setTheme(theme);
- } catch (PackageManager.NameNotFoundException e) {
- // Ignore
}
+ } catch (PackageManager.NameNotFoundException e) {
+ // Ignore
}
Window win = PolicyManager.makeNewWindow(context);