Merge "Configurable sysprop for launcher depth" into sc-dev
This commit is contained in:
commit
ca65ca4538
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue