summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2019-07-13 02:15:10 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2019-07-13 02:15:10 +0000
commit7c33cbcbcc9e12a130ca62c52607cc88fec2ec9c (patch)
treefbc13652f7285f00d70587b0762b589d5eea64de
parent0c66bddc164dbc63e0c349312618b621878dc89d (diff)
parent19734232cb93e0a254b27bda79cc6e56c5e45eb3 (diff)
Merge "Fixed a crash with remote input" into qt-r1-dev
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/NotificationRemoteInputManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationRemoteInputManager.java b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationRemoteInputManager.java
index 70ee752dd8ed..c9050d492191 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationRemoteInputManager.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationRemoteInputManager.java
@@ -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;