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

Commit 4d1a434c authored by Winson Chung's avatar Winson Chung
Browse files

Fixing crash in Activity.onApplyTheme().

parent aca96020
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -3499,9 +3499,8 @@ public class Activity extends ContextThemeWrapper
        }

        // Get the primary color and update the RecentsActivityValues for this activity
        Resources.Theme tmpTheme = getTheme();
        if (tmpTheme != null) {
            TypedArray a = tmpTheme.obtainStyledAttributes(com.android.internal.R.styleable.Theme);
        if (theme != null) {
            TypedArray a = theme.obtainStyledAttributes(com.android.internal.R.styleable.Theme);
            int colorPrimary = a.getColor(com.android.internal.R.styleable.Theme_colorPrimary, 0);
            a.recycle();
            if (colorPrimary != 0) {