Fixed the paddings when replying with inline reply
The paddings weren't applied properly when we were
sending and when heads-upped since the view wasn't
actually focused and we didn't get an update anymore.
Test: inline reply from HUN, normal, observe normal paddings
Change-Id: I0e0422b5f6ca3ed9a53b4b665016791d6ca0f68f
Fixes: 73819283
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/RemoteInputController.java b/packages/SystemUI/src/com/android/systemui/statusbar/RemoteInputController.java
index cfc69a8..b0d5536 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/RemoteInputController.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/RemoteInputController.java
@@ -165,6 +165,16 @@
return mSpinning.containsKey(key);
}
+ /**
+ * Same as {@link #isSpinning}, but also verifies that the token is the same
+ * @param key the key that is spinning
+ * @param token the token that needs to be the same
+ * @return if this key with a given token is spinning
+ */
+ public boolean isSpinning(String key, Object token) {
+ return mSpinning.get(key) == token;
+ }
+
private void apply(NotificationData.Entry entry) {
mDelegate.setRemoteInputActive(entry, isRemoteInputActive(entry));
boolean remoteInputActive = isRemoteInputActive();