Merge "Tapping a notification closes inline reply, regardless of whether the user has typed anything." into udc-qpr-dev am: 2cabddb86f am: 9e8079fdd2

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/24116566

Change-Id: Iab46f5d4fa6f43288e47042d98eb5d39c47c462d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Julia Reynolds
2023-07-27 13:54:49 +00:00
committed by Automerger Merge Worker

View File

@@ -215,8 +215,7 @@ class StatusBarNotificationActivityStarter implements NotificationActivityStarte
public void onNotificationClicked(NotificationEntry entry, ExpandableNotificationRow row) {
mLogger.logStartingActivityFromClick(entry);
if (mRemoteInputManager.isRemoteInputActive(entry)
&& !TextUtils.isEmpty(row.getActiveRemoteInputText())) {
if (mRemoteInputManager.isRemoteInputActive(entry)) {
// We have an active remote input typed and the user clicked on the notification.
// this was probably unintentional, so we're closing the edit text instead.
mRemoteInputManager.closeRemoteInputs();