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

Commit 15e48514 authored by Manu Cornet's avatar Manu Cornet Committed by android-build-merger
Browse files

2D Recents: use a different background color for drop targets am: 47dd7c51

am: d6f0a321

Change-Id: I2b5c8f8d51804bb3839f5d27e97c3f0b8f5ef1ae
parents 9cfbe957 d6f0a321
Loading
Loading
Loading
Loading
+6 −2
Original line number Original line Diff line number Diff line
@@ -247,6 +247,9 @@ public class TaskStack {
     */
     */
    public static class DockState implements DropTarget {
    public static class DockState implements DropTarget {


        public static final int DOCK_AREA_BG_COLOR = 0xFFffffff;
        public static final int DOCK_AREA_GRID_BG_COLOR = 0xFF000000;

        // The rotation to apply to the hint text
        // The rotation to apply to the hint text
        @Retention(RetentionPolicy.SOURCE)
        @Retention(RetentionPolicy.SOURCE)
        @IntDef({HORIZONTAL, VERTICAL})
        @IntDef({HORIZONTAL, VERTICAL})
@@ -319,7 +322,8 @@ public class TaskStack {
            private ViewState(int areaAlpha, int hintAlpha, @TextOrientation int hintOrientation,
            private ViewState(int areaAlpha, int hintAlpha, @TextOrientation int hintOrientation,
                    int hintTextResId) {
                    int hintTextResId) {
                dockAreaAlpha = areaAlpha;
                dockAreaAlpha = areaAlpha;
                dockAreaOverlay = new ColorDrawable(0xFFffffff);
                dockAreaOverlay = new ColorDrawable(Recents.getConfiguration().isGridEnabled
                        ? DOCK_AREA_GRID_BG_COLOR : DOCK_AREA_BG_COLOR);
                dockAreaOverlay.setAlpha(0);
                dockAreaOverlay.setAlpha(0);
                hintTextAlpha = hintAlpha;
                hintTextAlpha = hintAlpha;
                hintTextOrientation = hintOrientation;
                hintTextOrientation = hintOrientation;