summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaj Yengisetty <rajesh@cyngn.com>2015-05-13 09:46:43 -0700
committerRaj Yengisetty <rajesh@cyngn.com>2015-05-13 09:46:44 -0700
commitfaff75b5dc599dfb5d5832ceceb82510834c7616 (patch)
tree26c1ef175d709c719e8cc06effe91d3f9d970e1c
parent8df1f02140d329ff5edc03cc9cf89e92cb63dcbb (diff)
downloadandroid_packages_apps_Trebuchet-faff75b5dc599dfb5d5832ceceb82510834c7616.tar.gz
android_packages_apps_Trebuchet-faff75b5dc599dfb5d5832ceceb82510834c7616.tar.bz2
android_packages_apps_Trebuchet-faff75b5dc599dfb5d5832ceceb82510834c7616.zip
Trebuchet: fix behavior when ShowSearchBar feature is toggled off
This bug was introduced with the New Folder UI changes Repro: - Turn off Show Search Bar - Open App Drawer - Close App Drawer - Observe: "small" search bar shows up at the top of the screen Change-Id: I18e59acff3197ea908473c89ff3ade8eaf9bed28
-rw-r--r--src/com/android/launcher3/SearchDropTargetBar.java11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/com/android/launcher3/SearchDropTargetBar.java b/src/com/android/launcher3/SearchDropTargetBar.java
index e2f4b386c..611948d29 100644
--- a/src/com/android/launcher3/SearchDropTargetBar.java
+++ b/src/com/android/launcher3/SearchDropTargetBar.java
@@ -98,13 +98,6 @@ public class SearchDropTargetBar extends FrameLayout implements DragController.D
anim.setDuration(sTransitionInDuration);
anim.addListener(new AnimatorListenerAdapter() {
@Override
- public void onAnimationStart(Animator animation) {
- if (v.getVisibility() != View.VISIBLE) {
- v.setVisibility(View.VISIBLE);
- }
- }
-
- @Override
public void onAnimationEnd(Animator animation) {
v.setLayerType(View.LAYER_TYPE_NONE, null);
}
@@ -227,6 +220,10 @@ public class SearchDropTargetBar extends FrameLayout implements DragController.D
prepareStartAnimation(mDropTargetBar);
mDropTargetBarAnim.reverse();
if (!isAnyFolderOpen() && (!mIsSearchBarHidden || mQSBSearchBar.getAlpha() < 1f)) {
+ if (mLauncher != null && mLauncher.shouldShowSearchBar()
+ && mQSBSearchBar.getVisibility() != View.VISIBLE) {
+ mQSBSearchBar.setVisibility(View.VISIBLE);
+ }
prepareStartAnimation(mQSBSearchBar);
mQSBSearchBarAnim.reverse();
}