mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 09:56:49 +00:00
Use Launcher.getLauncher(Context) instead of type-casting.
Bug: 32010039 Change-Id: Icb80d3e547a706740b84df2cb80f99e4a7f81c43
This commit is contained in:
@@ -252,7 +252,7 @@ public class FolderPagedView extends PagedView {
|
||||
}
|
||||
|
||||
private CellLayout createAndAddNewPage() {
|
||||
DeviceProfile grid = ((Launcher) getContext()).getDeviceProfile();
|
||||
DeviceProfile grid = Launcher.getLauncher(getContext()).getDeviceProfile();
|
||||
CellLayout page = new CellLayout(getContext());
|
||||
page.setCellDimensions(grid.folderCellWidthPx, grid.folderCellHeightPx);
|
||||
page.getShortcutsAndWidgets().setMotionEventSplittingEnabled(false);
|
||||
|
||||
Reference in New Issue
Block a user