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

Commit 0df542d9 authored by Josh Guilfoyle's avatar Josh Guilfoyle
Browse files

Implemented pluto:isThemeable flag. Caused THEMES-98.

CR: Sergey Ten
parent 6796d78d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;
+16 −0
Original line number Diff line number Diff line
@@ -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);