Merge "Fix keyboard remain after dismissing notification" into sc-dev
This commit is contained in:
@@ -576,6 +576,7 @@ public class NotificationRemoteInputManager implements Dumpable {
|
||||
mKeysKeptForRemoteInputHistory.remove(key);
|
||||
}
|
||||
if (mRemoteInputController.isRemoteInputActive(entry)) {
|
||||
entry.mRemoteEditImeVisible = false;
|
||||
mRemoteInputController.removeRemoteInput(entry, null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -108,6 +108,7 @@ public class NotificationRemoteInputManagerTest extends SysuiTestCase {
|
||||
when(mController.isRemoteInputActive(mEntry)).thenReturn(true);
|
||||
mRemoteInputManager.onPerformRemoveNotification(mEntry, mEntry.getKey());
|
||||
|
||||
assertFalse(mEntry.mRemoteEditImeVisible);
|
||||
verify(mController).removeRemoteInput(mEntry, null);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user