mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Adding migration Clings. (Bug 11973614)
- Refactoring Launcher cling code out to LauncherClings. Change-Id: Iff4f84f5b8bfeb69b1be0b4802022c3eb20b6f2c
This commit is contained in:
@@ -475,6 +475,14 @@ public class DeviceProfile {
|
||||
return bounds;
|
||||
}
|
||||
|
||||
/** Returns the bounds of the workspace page indicators. */
|
||||
Rect getWorkspacePageIndicatorBounds(Rect insets) {
|
||||
Rect workspacePadding = getWorkspacePadding();
|
||||
int pageIndicatorTop = heightPx - insets.bottom - workspacePadding.bottom;
|
||||
return new Rect(workspacePadding.left, pageIndicatorTop,
|
||||
widthPx - workspacePadding.right, pageIndicatorTop + pageIndicatorHeightPx);
|
||||
}
|
||||
|
||||
/** Returns the workspace padding in the specified orientation */
|
||||
Rect getWorkspacePadding() {
|
||||
return getWorkspacePadding(isLandscape ? CellLayout.LANDSCAPE : CellLayout.PORTRAIT);
|
||||
|
||||
Reference in New Issue
Block a user