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

Commit 300787a9 authored by Abhisek Devkota's avatar Abhisek Devkota Committed by Gerrit Code Review
Browse files

Merge "CM11 Themes: remove handleThemeConfigChanges" into cm-11.0

parents 8e794a6f 71cc7478
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -470,11 +470,6 @@ public class ApplicationInfo extends PackageItemInfo implements Parcelable {
     */
    public int enabledSetting = PackageManager.COMPONENT_ENABLED_STATE_DEFAULT;

    /**
     * @hide
     */
    public static final String HANDLE_THEME_CONFIG_CHANGES_ATTRIBUTE_NAME = "handleThemeConfigChanges";

    /**
     * Is given application theme agnostic, i.e. behaves properly when default theme is changed.
     * {@hide}
+0 −12
Original line number Diff line number Diff line
@@ -2244,16 +2244,6 @@ public class PackageParser {
        return a;
    }

    private void parseActivityThemeAttributes(XmlPullParser parser, AttributeSet attrs,
                                              ActivityInfo ai) {
        for (int i = 0; i < attrs.getAttributeCount(); i++) {
            String attrName = attrs.getAttributeName(i);
            if (attrName.equalsIgnoreCase(ApplicationInfo.HANDLE_THEME_CONFIG_CHANGES_ATTRIBUTE_NAME)) {
                ai.configChanges |= ActivityInfo.CONFIG_THEME_RESOURCE;
            }
        }
    }

    private boolean parseApplication(Package owner, Resources res,
            XmlPullParser parser, AttributeSet attrs, int flags, String[] outError)
        throws XmlPullParserException, IOException {
@@ -2849,8 +2839,6 @@ public class PackageParser {
            return null;
        }

        parseActivityThemeAttributes(parser, attrs, a.info);

        int outerDepth = parser.getDepth();
        int type;
        while ((type=parser.next()) != XmlPullParser.END_DOCUMENT