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

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

Change-Id: I8a195d669a5c60ce4e88175de60721c5537ed55d
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:12:43 +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();