Merge "Add Launcher support for left-right splits on portrait foldables" into main
This commit is contained in:
commit
abb4483f6f
21 files changed
+68
-33
No files matched your search
@@ -757,10 +757,16 @@ public final class Utilities {
|
||||
*/
|
||||
public static List<SplitPositionOption> getSplitPositionOptions(
|
||||
DeviceProfile dp) {
|
||||
int splitIconRes = dp.isLeftRightSplit
|
||||
? R.drawable.ic_split_horizontal
|
||||
: R.drawable.ic_split_vertical;
|
||||
int stagePosition = dp.isLeftRightSplit
|
||||
? STAGE_POSITION_BOTTOM_OR_RIGHT
|
||||
: STAGE_POSITION_TOP_OR_LEFT;
|
||||
return Collections.singletonList(new SplitPositionOption(
|
||||
dp.isLandscape ? R.drawable.ic_split_horizontal : R.drawable.ic_split_vertical,
|
||||
splitIconRes,
|
||||
R.string.recent_task_option_split_screen,
|
||||
dp.isLandscape ? STAGE_POSITION_BOTTOM_OR_RIGHT : STAGE_POSITION_TOP_OR_LEFT,
|
||||
stagePosition,
|
||||
STAGE_TYPE_MAIN
|
||||
));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user