OSDN Git Service

Don't animate search bar when we are not animating the transition to workspace. ...
authorWinson Chung <winsonc@google.com>
Wed, 9 Oct 2013 00:13:12 +0000 (17:13 -0700)
committerWinson Chung <winsonc@google.com>
Wed, 9 Oct 2013 00:13:12 +0000 (17:13 -0700)
Change-Id: If397ce78a15dafe98f951d185da26ca014c9ad1b

src/com/android/launcher3/Launcher.java

index 201e583..5aec399 100644 (file)
@@ -3042,7 +3042,7 @@ public class Launcher extends Activity
             // Show the search bar (only animate if we were showing the drop target bar in spring
             // loaded mode)
             if (mSearchDropTargetBar != null) {
-                mSearchDropTargetBar.showSearchBar(wasInSpringLoadedMode);
+                mSearchDropTargetBar.showSearchBar(animated && wasInSpringLoadedMode);
             }
 
             // Set focus to the AppsCustomize button