From 6841f192723c34d2680ac45a852c75aef251b3e4 Mon Sep 17 00:00:00 2001 From: Sai Cheemalapati Date: Tue, 10 Jun 2014 13:30:10 -0700 Subject: Fix bug where keyboard jumps in landscape. Fixes bug where keyboard would jump up after exiting the SearchFragment when the query text was empty. Change-Id: I591b401a42c1abc7fa58d7dcc7aacd97b228886d --- src/com/android/dialer/widget/SearchEditTextLayout.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/com/android/dialer/widget/SearchEditTextLayout.java b/src/com/android/dialer/widget/SearchEditTextLayout.java index f3e355d7c..3dcbc4bb1 100644 --- a/src/com/android/dialer/widget/SearchEditTextLayout.java +++ b/src/com/android/dialer/widget/SearchEditTextLayout.java @@ -230,7 +230,9 @@ public class SearchEditTextLayout extends FrameLayout { mVoiceSearchButtonView.setVisibility(collapsedViewVisibility); mOverflowButtonView.setVisibility(collapsedViewVisibility); mBackButtonView.setVisibility(expandedViewVisibility); - mExpandedSearchBox.setVisibility(expandedViewVisibility); + // TODO: Prevents keyboard from jumping up in landscape mode after exiting the + // SearchFragment when the query string is empty. More elegant fix? + //mExpandedSearchBox.setVisibility(expandedViewVisibility); mClearButtonView.setVisibility(expandedViewVisibility); } -- cgit v1.2.3