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 296399 c54ea35177605946a46883ba8539f1a29bc02510
parent 296398 f25b717ac20ab4635dbfbbebf7cb24501ccd10fd
child 296400 a393fc635accd7c3b4608b9f23638725b8602582
push id5245
push userraliiev@mozilla.com
push dateThu, 29 Oct 2015 11:30:51 +0000
treeherdermozilla-beta@dac831dc1bd0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
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();
                         }
                     }
                 });
             }