Merge "Turn off changing depth in wallpaper picker" into tm-qpr-dev

This commit is contained in:
TreeHugger Robot
2022-09-16 16:50:04 +00:00
committed by Android (Google) Code Review
2 changed files with 3 additions and 3 deletions
@@ -586,6 +586,8 @@ public class QuickstepLauncher extends Launcher {
public void onWidgetsTransition(float progress) {
super.onWidgetsTransition(progress);
onTaskbarInAppDisplayProgressUpdate(progress, WIDGETS_PAGE_PROGRESS_INDEX);
// Change of wallpaper depth in widget picker is disabled for tests as it causes flakiness
// on very slow cuttlefish devices.
if (ENABLE_WIDGET_PICKER_DEPTH.get() && !Utilities.IS_RUNNING_IN_TEST_HARNESS) {
WIDGET_DEPTH.set(getDepthController(),
Utilities.mapToRange(progress, 0f, 1f, 0f, getDeviceProfile().bottomSheetDepth,