diff options
author | Ricardo Cerqueira <github@cerqueira.org> | 2012-05-05 18:49:09 +0100 |
---|---|---|
committer | Ricardo Cerqueira <github@cerqueira.org> | 2012-05-05 18:49:17 +0100 |
commit | e821f5b727ef247a789557badb6640880cf992dd (patch) | |
tree | fc74bf9cc07a3eac04166477bed32ee5f9583d40 /policy | |
parent | f0b7008ac173a4402b982b0f50ca3db8b0659bb7 (diff) | |
parent | fd6ee4e7d2f1600021c0d2f47914c01600bd1b97 (diff) | |
download | frameworks_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-x | policy/src/com/android/internal/policy/impl/PhoneWindowManager.java | 12 |
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); |