From 2fd020860533e18c64a93d14d11cb2d34bc9cbaf Mon Sep 17 00:00:00 2001 From: Tony Date: Fri, 7 Oct 2016 12:50:01 -0700 Subject: Use Launcher.getLauncher(Context) instead of type-casting. Bug: 32010039 Change-Id: Icb80d3e547a706740b84df2cb80f99e4a7f81c43 --- src/com/android/launcher3/CellLayout.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/com/android/launcher3/CellLayout.java') diff --git a/src/com/android/launcher3/CellLayout.java b/src/com/android/launcher3/CellLayout.java index 6714d9f17..57fd0e70a 100644 --- a/src/com/android/launcher3/CellLayout.java +++ b/src/com/android/launcher3/CellLayout.java @@ -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(); -- cgit v1.2.3