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

Commit d8df11ba authored by Julia Reynolds's avatar Julia Reynolds Committed by Android (Google) Code Review
Browse files

Merge "Don't recreate remote views that already exist."

parents 40af4f3e 089e3e45
Loading
Loading
Loading
Loading
+17 −8
Original line number Diff line number Diff line
@@ -3271,12 +3271,16 @@ public class Notification implements Parcelable
         * Construct a RemoteViews for the final big notification layout.
         */
        public RemoteViews makeBigContentView() {
            if (mStyle != null) {
            if (mN.bigContentView != null) {
                return mN.bigContentView;
            } else if (mStyle != null) {
                final RemoteViews styleView = mStyle.makeBigContentView();
                if (styleView != null) {
                    return styleView;
                }
            } else if (mActions.size() == 0) return null;
            } else if (mActions.size() == 0) {
                return null;
            }

            return applyStandardTemplateWithActions(getBigBaseLayoutResource());
        }
@@ -3285,12 +3289,17 @@ public class Notification implements Parcelable
         * Construct a RemoteViews for the final heads-up notification layout.
         */
        public RemoteViews makeHeadsUpContentView() {
            if (mStyle != null) {
            if (mN.headsUpContentView != null) {
                return mN.headsUpContentView;
            } else if (mStyle != null) {
                    final RemoteViews styleView = mStyle.makeHeadsUpContentView();
                    if (styleView != null) {
                        return styleView;
                    }
            } else if (mActions.size() == 0) return null;
            } else if (mActions.size() == 0) {
                return null;
            }


            return applyStandardTemplateWithActions(getBigBaseLayoutResource());
        }