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

Commit df155c75 authored by Selim Cinek's avatar Selim Cinek Committed by Android (Google) Code Review
Browse files

Merge "Removed the ripple for actions with remote inputs"

parents 6d8a63d7 ffcc7cfc
Loading
Loading
Loading
Loading
+6 −1
Original line number Original line Diff line number Diff line
@@ -4616,10 +4616,15 @@ public class Notification implements Parcelable
                if (N>MAX_ACTION_BUTTONS) N=MAX_ACTION_BUTTONS;
                if (N>MAX_ACTION_BUTTONS) N=MAX_ACTION_BUTTONS;
                for (int i=0; i<N; i++) {
                for (int i=0; i<N; i++) {
                    Action action = mActions.get(i);
                    Action action = mActions.get(i);
                    validRemoteInput |= hasValidRemoteInput(action);
                    boolean actionHasValidInput = hasValidRemoteInput(action);
                    validRemoteInput |= actionHasValidInput;


                    final RemoteViews button = generateActionButton(action, emphazisedMode,
                    final RemoteViews button = generateActionButton(action, emphazisedMode,
                            i % 2 != 0, p.ambient);
                            i % 2 != 0, p.ambient);
                    if (actionHasValidInput) {
                        // Clear the drawable
                        button.setInt(R.id.action0, "setBackgroundResource", 0);
                    }
                    big.addView(R.id.actions, button);
                    big.addView(R.id.actions, button);
                }
                }
            } else {
            } else {