From dc5b4535165d82e5e9c83576a47bd95cd422ca0a Mon Sep 17 00:00:00 2001 From: Adrian Roos Date: Wed, 6 Jan 2016 20:49:41 +0100 Subject: [PATCH] Scroll to RemoteInputView Scrolls to the RemoteInputView when it's beneath the IME. Also fixes ViewRootImpl to take into account translation when calculating the location of the focused rect. Bug: 22452379 Change-Id: I9b9649edeabf9bcab8fc487fe92dec62f388737e --- packages/SystemUI/res/layout/remote_input.xml | 12 +++++++----- .../statusbar/phone/StatusBarWindowManager.java | 6 ++++++ .../statusbar/policy/RemoteInputView.java | 17 ++++++++++++++++- .../server/policy/PhoneWindowManager.java | 8 +++++++- 4 files changed, 36 insertions(+), 7 deletions(-) diff --git a/packages/SystemUI/res/layout/remote_input.xml b/packages/SystemUI/res/layout/remote_input.xml index 83cfc764066c0..cce07bdaa45de 100644 --- a/packages/SystemUI/res/layout/remote_input.xml +++ b/packages/SystemUI/res/layout/remote_input.xml @@ -23,16 +23,16 @@ android:id="@+id/remote_input" android:layout_height="match_parent" android:layout_width="match_parent" - android:paddingStart="16dp" - android:paddingEnd="12dp" - android:paddingBottom="4dp" - android:paddingTop="2dp"> + android:paddingEnd="12dp"> + android:layout_gravity="center_vertical" + android:paddingTop="2dp" + android:paddingBottom="4dp">