Merge "Fixed a crash with remote input" into qt-r1-dev

am: 7c33cbcbcc

Change-Id: Id95e297df37d1fda9f1c7a580343a8fbc9f6ef2b
This commit is contained in:
Selim Cinek
2019-07-12 19:27:02 -07:00
committed by android-build-merger

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;