Bug 1207961 - Quick search bar hides behind the VKB when choosing not to display search suggestions. r=mcomella, a=lizzard
authorSergej Kravcenko <sergej@codewaves.com>
Thu, 24 Sep 2015 19:04:33 +0300
changeset 606983 c54ea35177605946a46883ba8539f1a29bc02510
parent 606982 f25b717ac20ab4635dbfbbebf7cb24501ccd10fd
child 606984 a393fc635accd7c3b4608b9f23638725b8602582
push id93006
push userjyavenard@mozilla.com
push dateThu, 15 Oct 2015 05:15:33 +0000
treeherdertry@45ea2a01301e [default view] [failures only]
reviewersmcomella, lizzard
bugs1207961
milestone43.0a2
Bug 1207961 - Quick search bar hides behind the VKB when choosing not to display search suggestions. r=mcomella, a=lizzard
mobile/android/base/home/BrowserSearch.java
--- a/mobile/android/base/home/BrowserSearch.java
+++ b/mobile/android/base/home/BrowserSearch.java
@@ -716,20 +716,21 @@ public class BrowserSearch extends HomeF
                 // the issue.
                 mView.post(new Runnable() {
                     @Override
                     public void run() {
                         mView.removeView(mSuggestionsOptInPrompt);
                         mList.clearAnimation();
                         mSuggestionsOptInPrompt = null;
 
+                        // Reset the view height
+                        mView.getLayoutParams().height = LayoutParams.MATCH_PARENT;
+
+                        // Show search suggestions and update them
                         if (enabled) {
-                            // Reset the view height
-                            mView.getLayoutParams().height = LayoutParams.MATCH_PARENT;
-
                             mSuggestionsEnabled = enabled;
                             mAnimateSuggestions = true;
                             mAdapter.notifyDataSetChanged();
                             filterSuggestions();
                         }
                     }
                 });
             }