Merge "Configurable sysprop for launcher depth" into sc-dev am: ca65ca4538

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14613291

Change-Id: Ie916eebf0bf3fa9060ce357d235338c4055fd497
This commit is contained in:
Lucas Dupin
2021-05-18 15:27:43 +00:00
committed by Automerger Merge Worker
2 changed files with 6 additions and 2 deletions
@@ -19,6 +19,7 @@ import static com.android.launcher3.logging.StatsLogManager.LAUNCHER_STATE_BACKG
import android.content.Context;
import android.graphics.Color;
import android.os.SystemProperties;
import com.android.launcher3.BaseDraggingActivity;
import com.android.launcher3.DeviceProfile;
@@ -84,7 +85,8 @@ public class BackgroundAppState extends OverviewState {
@Override
protected float getDepthUnchecked(Context context) {
return 1f;
//TODO revert when b/178661709 is fixed
return SystemProperties.getBoolean("ro.launcher.depth.appLaunch", true) ? 1 : 0;
}
@Override
@@ -20,6 +20,7 @@ import static com.android.launcher3.logging.StatsLogManager.LAUNCHER_STATE_OVERV
import android.content.Context;
import android.graphics.Rect;
import android.os.SystemProperties;
import android.view.View;
import com.android.launcher3.DeviceProfile;
@@ -127,7 +128,8 @@ public class OverviewState extends LauncherState {
@Override
protected float getDepthUnchecked(Context context) {
return 1f;
//TODO revert when b/178661709 is fixed
return SystemProperties.getBoolean("ro.launcher.depth.overview", true) ? 1 : 0;
}
@Override