Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2eb3f3d1 authored by Josh Guilfoyle's avatar Josh Guilfoyle
Browse files

Always create a package-specific context in the PhoneWindowManager.

This is necessary to support dynamic theming.
parent ce9c0447
Loading
Loading
Loading
Loading
+7 −9
Original line number Diff line number Diff line
@@ -866,7 +866,6 @@ public class PhoneWindowManager implements WindowManagerPolicy {
            boolean setTheme = false;
            //Log.i(TAG, "addStartingWindow " + packageName + ": nonLocalizedLabel="
            //        + nonLocalizedLabel + " theme=" + Integer.toHexString(theme));
            if (theme != 0 || labelRes != 0) {
            try {
                context = context.createPackageContext(packageName, 0);
                if (theme != 0) {
@@ -876,7 +875,6 @@ public class PhoneWindowManager implements WindowManagerPolicy {
            } catch (PackageManager.NameNotFoundException e) {
                // Ignore
            }
            }
            if (!setTheme) {
                context.setTheme(com.android.internal.R.style.Theme);
            }