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

Commit a3539cb0 authored by Adrian Roos's avatar Adrian Roos
Browse files

Fix NPE in processForRemoteInput

Bug: 26168336
Change-Id: I010fb22caee2edd85cc0263abeb729e6b952ed01
parent 3a0ea625
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -1612,8 +1612,14 @@ public abstract class BaseStatusBar extends SystemUI implements

            for (int i = 0; i < numActions; i++) {
                Notification.Action action = actions.get(i);
                if (action == null) {
                    continue;
                }
                RemoteInput[] remoteInputs = action.getRemoteInputs();
                for (RemoteInput ri : action.getRemoteInputs()) {
                if (remoteInputs == null) {
                    continue;
                }
                for (RemoteInput ri : remoteInputs) {
                    if (ri.getAllowFreeFormInput()) {
                        viableAction = action;
                        break;