Fixed a crash with remote input

Fixes: 137156529
Test: use remote input on hun
Change-Id: Ib1adc090346d7a90283053725e0038494b326528
This commit is contained in:
Selim Cinek
2019-07-11 20:02:40 -07:00
parent 9917209b15
commit 19734232cb

View 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;