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

Commit ee877e5c authored by Jeff DeCew's avatar Jeff DeCew
Browse files

Remove a vestige of the reply action.

Followup to I28992441300ffdecc58900730ff9d858d6c0a009

Bug: 163626038
Test: n/a
Change-Id: I94ad332df5a095b7db9eb08797992a2e39a70c00
parent 98668dc5
Loading
Loading
Loading
Loading
+4 −11
Original line number Diff line number Diff line
@@ -3589,11 +3589,6 @@ public class Notification implements Parcelable
        private int mSecondaryTextColor = COLOR_INVALID;
        private int mBackgroundColor = COLOR_INVALID;
        private int mForegroundColor = COLOR_INVALID;
        /**
         * A temporary location where actions are stored. If != null the view originally has action
         * but doesn't have any for this inflation.
         */
        private ArrayList<Action> mOriginalActions;
        private boolean mRebuildStyledRemoteViews;

        private boolean mTintActionButtons;
@@ -7407,11 +7402,10 @@ public class Notification implements Parcelable
        @Override
        public RemoteViews makeContentView(boolean increasedHeight) {
            if (increasedHeight) {
                mBuilder.mOriginalActions = mBuilder.mActions;
                ArrayList<Action> originalActions = mBuilder.mActions;
                mBuilder.mActions = new ArrayList<>();
                RemoteViews remoteViews = makeBigContentView();
                mBuilder.mActions = mBuilder.mOriginalActions;
                mBuilder.mOriginalActions = null;
                mBuilder.mActions = originalActions;
                return remoteViews;
            }
            return super.makeContentView(increasedHeight);
@@ -7906,12 +7900,11 @@ public class Notification implements Parcelable
         */
        @Override
        public RemoteViews makeContentView(boolean increasedHeight) {
            mBuilder.mOriginalActions = mBuilder.mActions;
            ArrayList<Action> originalActions = mBuilder.mActions;
            mBuilder.mActions = new ArrayList<>();
            RemoteViews remoteViews = makeMessagingView(true /* isCollapsed */,
                    false /* hideLargeIcon */);
            mBuilder.mActions = mBuilder.mOriginalActions;
            mBuilder.mOriginalActions = null;
            mBuilder.mActions = originalActions;
            return remoteViews;
        }