Merge "Configurable sysprop for launcher depth" into sc-dev

This commit is contained in:
Lucas Dupin 2021-05-18 15:12:39 +00:00 committed by Android (Google) Code Review
commit ca65ca4538
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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