OSDN Git Service

Fixed a crash with remote input
authorSelim Cinek <cinek@google.com>
Fri, 12 Jul 2019 03:02:40 +0000 (20:02 -0700)
committerSelim Cinek <cinek@google.com>
Fri, 12 Jul 2019 03:02:40 +0000 (20:02 -0700)
Fixes: 137156529
Test: use remote input on hun
Change-Id: Ib1adc090346d7a90283053725e0038494b326528

packages/SystemUI/src/com/android/systemui/statusbar/NotificationRemoteInputManager.java

index 70ee752..c9050d4 100644 (file)
@@ -398,7 +398,7 @@ public class NotificationRemoteInputManager implements Dumpable {
             }
         }
 
-        if (!riv.isAttachedToWindow()) {
+        if (riv != null && !riv.isAttachedToWindow()) {
             // the remoteInput isn't attached to the window anymore :/ Let's focus on the expanded
             // one instead if it's available
             riv = null;