commit | e52a4e39afbf76cd6cc293e498dae34e4a097b65 | [log] [tgz] |
---|---|---|
author | Brian Isganitis <brianji@google.com> | Thu Aug 12 18:57:49 2021 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Thu Aug 12 18:57:49 2021 +0000 |
tree | d8f9a71f662b91eccf69097016f6fcd334593f0b | |
parent | 3be0173b14fcf2f0736d029e4ef50882df87f384 [diff] | |
parent | ec8a994d546d2bce4b9039d16db15653c271ab63 [diff] |
Merge "Update preferences to Material Next styling" into sc-qpr1-dev
diff --git a/quickstep/src/com/android/launcher3/uioverrides/states/AllAppsState.java b/quickstep/src/com/android/launcher3/uioverrides/states/AllAppsState.java index d822c8c..f8c9fd1 100644 --- a/quickstep/src/com/android/launcher3/uioverrides/states/AllAppsState.java +++ b/quickstep/src/com/android/launcher3/uioverrides/states/AllAppsState.java
@@ -70,7 +70,9 @@ @Override protected float getDepthUnchecked(Context context) { - return 1f; + // The scrim fades in at approximately 50% of the swipe gesture. + // This means that the depth should be greater than 1, in order to fully zoom out. + return 2f; } @Override
diff --git a/quickstep/src/com/android/quickstep/FallbackSwipeHandler.java b/quickstep/src/com/android/quickstep/FallbackSwipeHandler.java index fd44e02..e2f198c 100644 --- a/quickstep/src/com/android/quickstep/FallbackSwipeHandler.java +++ b/quickstep/src/com/android/quickstep/FallbackSwipeHandler.java
@@ -173,7 +173,9 @@ @Override protected void notifyGestureAnimationStartToRecents() { if (mRunningOverHome) { - mRecentsView.onGestureAnimationStartOnHome(mGestureState.getRunningTask()); + if (SysUINavigationMode.getMode(mContext).hasGestures) { + mRecentsView.onGestureAnimationStartOnHome(mGestureState.getRunningTask()); + } } else { super.notifyGestureAnimationStartToRecents(); }
diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index ce79125..fa4d6a1 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java
@@ -1775,7 +1775,7 @@ public void onGestureAnimationEnd() { mGestureActive = false; if (mOrientationState.setGestureActive(false)) { - updateOrientationHandler(); + updateOrientationHandler(/* forceRecreateDragLayerControllers = */ false); } setEnableFreeScroll(true);
diff --git a/src/com/android/launcher3/widget/PendingAppWidgetHostView.java b/src/com/android/launcher3/widget/PendingAppWidgetHostView.java index d3a0190..57a6d3f 100644 --- a/src/com/android/launcher3/widget/PendingAppWidgetHostView.java +++ b/src/com/android/launcher3/widget/PendingAppWidgetHostView.java
@@ -85,7 +85,7 @@ setBackgroundResource(R.drawable.pending_widget_bg); setWillNotDraw(false); - updateAppWidget(null); + super.updateAppWidget(null); setOnClickListener(ItemClickHandler.INSTANCE); if (info.pendingItemInfo == null) {