Merge "Add GroupedTaskView for gestures in staged split." into sc-v2-dev am: ca1d523734 am: 7afaf2731e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15467633 Change-Id: If6bd74213f1da7a4a76e42fb4c5e44b36b14edf8
This commit is contained in:
commit
5bfc125bde
25 files changed
+1156
-253
No files matched your search
@@ -219,6 +219,7 @@ public class DeviceProfile {
|
||||
// DragController
|
||||
public int flingToDeleteThresholdVelocity;
|
||||
|
||||
/** TODO: Once we fully migrate to staged split, remove "isMultiWindowMode" */
|
||||
DeviceProfile(Context context, InvariantDeviceProfile inv, Info info, WindowBounds windowBounds,
|
||||
boolean isMultiWindowMode, boolean transposeLayoutWithOrientation,
|
||||
boolean useTwoPanels) {
|
||||
|
||||
@@ -18,6 +18,8 @@ package com.android.launcher3.util;
|
||||
|
||||
import static java.lang.annotation.RetentionPolicy.SOURCE;
|
||||
|
||||
import android.graphics.Rect;
|
||||
|
||||
import androidx.annotation.IntDef;
|
||||
|
||||
import java.lang.annotation.Retention;
|
||||
@@ -82,4 +84,25 @@ public final class SplitConfigurationOptions {
|
||||
mStageType = stageType;
|
||||
}
|
||||
}
|
||||
|
||||
public static class StagedSplitBounds {
|
||||
public final Rect mLeftTopBounds;
|
||||
public final Rect mRightBottomBounds;
|
||||
public final Rect mDividerBounds;
|
||||
|
||||
|
||||
public StagedSplitBounds(Rect leftTopBounds, Rect rightBottomBounds, Rect dividerBounds) {
|
||||
mLeftTopBounds = leftTopBounds;
|
||||
mRightBottomBounds = rightBottomBounds;
|
||||
mDividerBounds = dividerBounds;
|
||||
}
|
||||
}
|
||||
|
||||
public static class StagedSplitTaskPosition {
|
||||
public int taskId = -1;
|
||||
@StagePosition
|
||||
public int stagePosition = STAGE_POSITION_UNDEFINED;
|
||||
@StageType
|
||||
public int stageType = STAGE_TYPE_UNDEFINED;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user