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

This commit is contained in:
TreeHugger Robot
2019-07-13 02:15:10 +00:00
committed by Android (Google) Code Review

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;