Use Launcher.getLauncher(Context) instead of type-casting.
Bug: 32010039 Change-Id: Icb80d3e547a706740b84df2cb80f99e4a7f81c43
This commit is contained in:
1 parent
6e74e899d3
commit
2fd0208605
19 files changed
+29
-25
No files matched your search
@@ -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