OSDN Git Service

Shortcut show/hideSearchBar with new conditions.
authorMac Duy Hai <haim@google.com>
Wed, 16 Oct 2013 12:46:04 +0000 (13:46 +0100)
committerMac Duy Hai <haim@google.com>
Wed, 16 Oct 2013 13:00:17 +0000 (14:00 +0100)
commit8246a1434c12b607743222c22285b72c9a96497b
treec88a781aab686b4c9892d009448392c68a173c81
parentb6d33df9092cacfda1768ffdb96a0770c861566d
Shortcut show/hideSearchBar with new conditions.

This is effectively a revert of:
https://googleplex-android-review.googlesource.com/374556

With the new rules, we won't shortcut if:
 - the search bar is in an opposite visibility OR
 - a non-animated change has been requested AND there
   is an ongoing animation.

This makes sure that showSearchBar(false) called after
showSearchBar(true) is not ignored.

Bug: 11105305
Bug: 11237729
Change-Id: I92668dfac072e62506b2872e8bfbe9f707c9cc69
src/com/android/launcher3/SearchDropTargetBar.java