From 5389a1778d83af678b26e42236c541e17b29de58 Mon Sep 17 00:00:00 2001 From: Adrian Roos Date: Wed, 20 Apr 2016 13:58:03 -0700 Subject: [PATCH] Fix inline reply clobbering when narrowly missing send button The RemoteInputView leaked through unhandled touches. To prevent this, we now make sure the send button covers the entire area, and we catch any touches that did not go to either the send button or the text box. Bug: 27357771 Change-Id: Idc08d98dc7970b99c735f80088ea1eec0ec2d831 --- packages/SystemUI/res/layout/remote_input.xml | 16 +++++++--------- .../statusbar/policy/RemoteInputView.java | 15 +++++++++------ 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/packages/SystemUI/res/layout/remote_input.xml b/packages/SystemUI/res/layout/remote_input.xml index 74602015a2140..2db97a60337d7 100644 --- a/packages/SystemUI/res/layout/remote_input.xml +++ b/packages/SystemUI/res/layout/remote_input.xml @@ -22,8 +22,7 @@ android:theme="@style/systemui_theme_remote_input" android:id="@+id/remote_input" android:layout_height="match_parent" - android:layout_width="match_parent" - android:paddingEnd="12dp"> + android:layout_width="match_parent"> + android:layout_height="match_parent" + android:layout_gravity="center_vertical">