mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Initial changes for new clings. (Bug 11142616)
Change-Id: Id66ebceb99449941921d9e617dfe0cc05a2e3b65
This commit is contained in:
@@ -123,6 +123,13 @@ public class ShortcutAndWidgetContainer extends ViewGroup {
|
||||
mIsHotseatLayout = isHotseat;
|
||||
}
|
||||
|
||||
int getCellContentWidth() {
|
||||
final LauncherAppState app = LauncherAppState.getInstance();
|
||||
final DeviceProfile grid = app.getDynamicGrid().getDeviceProfile();
|
||||
return Math.min(getMeasuredHeight(), mIsHotseatLayout ?
|
||||
grid.hotseatCellWidthPx: grid.cellWidthPx);
|
||||
}
|
||||
|
||||
int getCellContentHeight() {
|
||||
final LauncherAppState app = LauncherAppState.getInstance();
|
||||
final DeviceProfile grid = app.getDynamicGrid().getDeviceProfile();
|
||||
|
||||
Reference in New Issue
Block a user