summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/RemoteInputController.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/RemoteInputController.java b/packages/SystemUI/src/com/android/systemui/statusbar/RemoteInputController.java
index 31ab6bdf0240..f44f59805889 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/RemoteInputController.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/RemoteInputController.java
@@ -114,14 +114,17 @@ public class RemoteInputController {
public void addRemoteInput(NotificationEntry entry, Object token) {
Objects.requireNonNull(entry);
Objects.requireNonNull(token);
-
+ boolean isActive = isRemoteInputActive(entry);
boolean found = pruneWeakThenRemoveAndContains(
entry /* contains */, null /* remove */, token /* removeToken */);
if (!found) {
mOpen.add(new Pair<>(new WeakReference<>(entry), token));
}
-
- apply(entry);
+ // If the remote input focus is being transferred between different notification layouts
+ // (ex: Expanded->Contracted), then we don't want to re-apply.
+ if (!isActive) {
+ apply(entry);
+ }
}
/**