Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca65ca45 authored by Lucas Dupin's avatar Lucas Dupin Committed by Android (Google) Code Review
Browse files

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

parents 049434a5 90dab00e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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
+3 −1
Original line number Diff line number Diff line
@@ -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