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

Commit 77dd7ce5 authored by Winson Chung's avatar Winson Chung Committed by Android (Google) Code Review
Browse files

Merge "Fixing crash in Activity.onApplyTheme()."

parents b7a6e198 4d1a434c
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -3618,9 +3618,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) {