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
@@ -196,7 +196,7 @@ public class CellLayout extends ViewGroup implements BubbleTextShadowHandler {
|
||||
// the user where a dragged item will land when dropped.
|
||||
setWillNotDraw(false);
|
||||
setClipToPadding(false);
|
||||
mLauncher = (Launcher) context;
|
||||
mLauncher = Launcher.getLauncher(context);
|
||||
|
||||
DeviceProfile grid = mLauncher.getDeviceProfile();
|
||||
|
||||
|
||||
Reference in new issue
Block a user