Bug 850217: Screen artifact in search selection. [r=mfinkle] [a=akeybl] FIREFOX_BETA_22_BASE
authorSriram Ramasubramanian <sriram@mozilla.com>
Thu, 09 May 2013 11:47:37 -0700
changeset 133627 b6d132db5e2baef35b9b6f777469952eefab8693
parent 133626 e2a1e083e069cb4254974cd6c6541d2b5835ee01
child 133628 ad3bf0511cd9c82b89418704890a54233aed4a8c
push idunknown
push userunknown
push dateunknown
reviewersmfinkle, akeybl
bugs850217
milestone22.0a2
Bug 850217: Screen artifact in search selection. [r=mfinkle] [a=akeybl]
mobile/android/base/awesomebar/AllPagesTab.java
--- a/mobile/android/base/awesomebar/AllPagesTab.java
+++ b/mobile/android/base/awesomebar/AllPagesTab.java
@@ -671,17 +671,17 @@ public class AllPagesTab extends Awesome
 
         // Pref observer in gecko will also set prompted = true
         PrefsHelper.setPref("browser.search.suggest.enabled", enabled);
 
         TranslateAnimation anim1 = new TranslateAnimation(0, mSuggestionsOptInPrompt.getWidth(), 0, 0);
         anim1.setDuration(ANIMATION_DURATION);
         anim1.setInterpolator(new AccelerateInterpolator());
         anim1.setFillAfter(true);
-        mSuggestionsOptInPrompt.findViewById(R.id.prompt_container).setAnimation(anim1);
+        final View promptContainer = mSuggestionsOptInPrompt.findViewById(R.id.prompt_container);
 
         TranslateAnimation anim2 = new TranslateAnimation(0, 0, 0, -1 * mSuggestionsOptInPrompt.getHeight());
         anim2.setDuration(ANIMATION_DURATION);
         anim2.setFillAfter(true);
         anim2.setStartOffset(anim1.getDuration());
         final LinearLayout view = (LinearLayout)getView();
         anim2.setAnimationListener(new Animation.AnimationListener() {
             @Override
@@ -715,17 +715,18 @@ public class AllPagesTab extends Awesome
                             getCursorAdapter().notifyDataSetChanged();
                             filterSuggestions(mSearchTerm);
                         }
                     }
                 });
             }
         });
 
-        mSuggestionsOptInPrompt.startAnimation(anim1);
+        promptContainer.startAnimation(anim1);
+        mSuggestionsOptInPrompt.startAnimation(anim2);
         getListView().startAnimation(anim2);
     }
 
     @Override
     public void handleMessage(String event, final JSONObject message) {
         if (event.equals("SearchEngines:Data")) {
             ThreadUtils.postToUiThread(new Runnable() {
                 @Override