Loading core/java/android/app/ActivityThread.java +2 −0 Original line number Diff line number Diff line Loading @@ -2253,6 +2253,8 @@ public final class ActivityThread { int theme = r.activityInfo.getThemeResource(); if (theme != 0) { activity.setTheme(theme); } else if (r.activityInfo.isThemeable() == false) { activity.setTheme(android.R.style.Theme); } activity.mCalled = false; Loading core/java/android/content/pm/ActivityInfo.java +16 −0 Original line number Diff line number Diff line Loading @@ -338,6 +338,22 @@ public class ActivityInfo extends ComponentInfo return theme != 0 ? theme : applicationInfo.theme; } /** * @hide */ public final boolean isThemeable() { switch (isThemeable) { case ISTHEMEABLE_TRUE: return true; case ISTHEMEABLE_INHERITED: return applicationInfo.isThemeable; default: return false; } } public void dump(Printer pw, String prefix) { super.dumpFront(pw, prefix); pw.println(prefix + "permission=" + permission); Loading Loading
core/java/android/app/ActivityThread.java +2 −0 Original line number Diff line number Diff line Loading @@ -2253,6 +2253,8 @@ public final class ActivityThread { int theme = r.activityInfo.getThemeResource(); if (theme != 0) { activity.setTheme(theme); } else if (r.activityInfo.isThemeable() == false) { activity.setTheme(android.R.style.Theme); } activity.mCalled = false; Loading
core/java/android/content/pm/ActivityInfo.java +16 −0 Original line number Diff line number Diff line Loading @@ -338,6 +338,22 @@ public class ActivityInfo extends ComponentInfo return theme != 0 ? theme : applicationInfo.theme; } /** * @hide */ public final boolean isThemeable() { switch (isThemeable) { case ISTHEMEABLE_TRUE: return true; case ISTHEMEABLE_INHERITED: return applicationInfo.isThemeable; default: return false; } } public void dump(Printer pw, String prefix) { super.dumpFront(pw, prefix); pw.println(prefix + "permission=" + permission); Loading