summaryrefslogtreecommitdiffstats
path: root/quickstep/src/com/android/quickstep/views/LauncherRecentsView.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2018-05-22 13:22:25 -0700
committerSunny Goyal <sunnygoyal@google.com>2018-05-22 15:58:20 -0700
commit56e1019e95a502fbc8144a6ba651095c0e12def1 (patch)
tree47ba269ebd00f9808c9dc0ea524c4846cb3c8d1c /quickstep/src/com/android/quickstep/views/LauncherRecentsView.java
parentdcae7e2b24bd007df27b71a41cb6ffb342dd47df (diff)
downloadandroid_packages_apps_Trebuchet-56e1019e95a502fbc8144a6ba651095c0e12def1.tar.gz
android_packages_apps_Trebuchet-56e1019e95a502fbc8144a6ba651095c0e12def1.tar.bz2
android_packages_apps_Trebuchet-56e1019e95a502fbc8144a6ba651095c0e12def1.zip
Making caret visibility part of state definition
> Hiding the caret in fast overview state > Hiding caret in task swipe down interaction Bug: 79700605 Change-Id: I984d535bc75802501e8aeb13c8f37387f331e5bc
Diffstat (limited to 'quickstep/src/com/android/quickstep/views/LauncherRecentsView.java')
-rw-r--r--quickstep/src/com/android/quickstep/views/LauncherRecentsView.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/quickstep/src/com/android/quickstep/views/LauncherRecentsView.java b/quickstep/src/com/android/quickstep/views/LauncherRecentsView.java
index 950f7fb99..5aca4f326 100644
--- a/quickstep/src/com/android/quickstep/views/LauncherRecentsView.java
+++ b/quickstep/src/com/android/quickstep/views/LauncherRecentsView.java
@@ -35,6 +35,9 @@ import android.view.ViewDebug;
import com.android.launcher3.DeviceProfile;
import com.android.launcher3.Launcher;
import com.android.launcher3.LauncherState;
+import com.android.launcher3.R;
+import com.android.launcher3.anim.Interpolators;
+import com.android.launcher3.views.ScrimView;
import com.android.quickstep.OverviewInteractionState;
import com.android.quickstep.util.ClipAnimationHelper;
import com.android.quickstep.util.LayoutUtils;
@@ -136,6 +139,12 @@ public class LauncherRecentsView extends RecentsView<Launcher> {
}
anim.play(ObjectAnimator.ofFloat(
mActivity.getAllAppsController(), ALL_APPS_PROGRESS, allAppsProgressOffscreen));
+
+ ObjectAnimator dragHandleAnim = ObjectAnimator.ofInt(
+ mActivity.findViewById(R.id.scrim_view), ScrimView.DRAG_HANDLE_ALPHA, 0);
+ dragHandleAnim.setInterpolator(Interpolators.ACCEL_2);
+ anim.play(dragHandleAnim);
+
return anim;
}
@@ -150,7 +159,7 @@ public class LauncherRecentsView extends RecentsView<Launcher> {
mActivity.getStateManager().goToState(NORMAL, false /* animate */);
} else {
LauncherState state = mActivity.getStateManager().getState();
- mActivity.getAllAppsController().setProgress(state.getVerticalProgress(mActivity));
+ mActivity.getAllAppsController().setState(state);
}
super.onTaskLaunched(success);
}