summaryrefslogtreecommitdiffstats
path: root/src_ui_overrides/com/android/launcher3/uioverrides
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2018-03-01 14:55:22 -0800
committerSunny Goyal <sunnygoyal@google.com>2018-03-01 15:58:11 -0800
commitdbd6bb348c1c10e34d7488a741845648e1f7e88c (patch)
treeeaf82b1ed13b9d67ae0a8eb73324ef4d27203715 /src_ui_overrides/com/android/launcher3/uioverrides
parentdd535466bf2ce88e07d489fa05a9caed274b028e (diff)
downloadandroid_packages_apps_Trebuchet-dbd6bb348c1c10e34d7488a741845648e1f7e88c.tar.gz
android_packages_apps_Trebuchet-dbd6bb348c1c10e34d7488a741845648e1f7e88c.tar.bz2
android_packages_apps_Trebuchet-dbd6bb348c1c10e34d7488a741845648e1f7e88c.zip
Simplifying all-apps search box
> Giving the search box a solid background so that it work fine with scrolling > bottom shadow logic for search box Bug: 73085356 Change-Id: Ie4dc4922be39ffd8e2d562becedbd4c6f820e6c9
Diffstat (limited to 'src_ui_overrides/com/android/launcher3/uioverrides')
-rw-r--r--src_ui_overrides/com/android/launcher3/uioverrides/OverviewPanel.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src_ui_overrides/com/android/launcher3/uioverrides/OverviewPanel.java b/src_ui_overrides/com/android/launcher3/uioverrides/OverviewPanel.java
index 4168e1160..616e25c2b 100644
--- a/src_ui_overrides/com/android/launcher3/uioverrides/OverviewPanel.java
+++ b/src_ui_overrides/com/android/launcher3/uioverrides/OverviewPanel.java
@@ -15,6 +15,7 @@
*/
package com.android.launcher3.uioverrides;
+import static com.android.launcher3.LauncherState.OVERVIEW;
import static com.android.launcher3.WorkspaceStateTransitionAnimation.NO_ANIM_PROPERTY_SETTER;
import android.content.Context;
@@ -174,7 +175,8 @@ public class OverviewPanel extends LinearLayout implements Insettable, View.OnCl
}
private void setState(LauncherState state, PropertySetter setter) {
- setter.setViewAlpha(this, 1f - state.getHoseatAlpha(mLauncher), Interpolators.ACCEL);
+ float myAlpha = state == OVERVIEW ? 1 : 0;
+ setter.setViewAlpha(this, myAlpha, Interpolators.ACCEL);
}
public static int getButtonBarHeight(Launcher launcher) {