summaryrefslogtreecommitdiffstats
path: root/quickstep/src/com/android/quickstep/views/ShelfScrimView.java
diff options
context:
space:
mode:
Diffstat (limited to 'quickstep/src/com/android/quickstep/views/ShelfScrimView.java')
-rw-r--r--quickstep/src/com/android/quickstep/views/ShelfScrimView.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/quickstep/src/com/android/quickstep/views/ShelfScrimView.java b/quickstep/src/com/android/quickstep/views/ShelfScrimView.java
index d2b3bcc17..fe05c4f82 100644
--- a/quickstep/src/com/android/quickstep/views/ShelfScrimView.java
+++ b/quickstep/src/com/android/quickstep/views/ShelfScrimView.java
@@ -15,6 +15,7 @@
*/
package com.android.quickstep.views;
+import static com.android.launcher3.LauncherState.BACKGROUND_APP;
import static com.android.launcher3.LauncherState.OVERVIEW;
import static com.android.launcher3.anim.Interpolators.ACCEL;
import static com.android.launcher3.anim.Interpolators.LINEAR;
@@ -33,6 +34,7 @@ import com.android.launcher3.DeviceProfile;
import com.android.launcher3.R;
import com.android.launcher3.Utilities;
import com.android.launcher3.anim.Interpolators;
+import com.android.launcher3.config.FeatureFlags;
import com.android.launcher3.util.Themes;
import com.android.launcher3.views.ScrimView;
@@ -135,6 +137,11 @@ public class ShelfScrimView extends ScrimView {
if (mProgress >= 1) {
mRemainingScreenColor = 0;
mShelfColor = 0;
+ if (FeatureFlags.SWIPE_HOME.get()
+ && mLauncher.getStateManager().getState() == BACKGROUND_APP) {
+ // Show the shelf background when peeking during swipe up.
+ mShelfColor = setColorAlphaBound(mEndScrim, mMidAlpha);
+ }
} else if (mProgress >= mMidProgress) {
mRemainingScreenColor = 0;