diff options
author | Tony <twickham@google.com> | 2016-10-07 12:50:01 -0700 |
---|---|---|
committer | Tony <twickham@google.com> | 2016-10-07 12:50:01 -0700 |
commit | 2fd020860533e18c64a93d14d11cb2d34bc9cbaf (patch) | |
tree | 509b35298eceb338ed7f91325c7d6cc48c907611 /src/com/android/launcher3/CellLayout.java | |
parent | 6e74e899d314663415f54895227bb79a51fd734b (diff) | |
download | android_packages_apps_Trebuchet-2fd020860533e18c64a93d14d11cb2d34bc9cbaf.tar.gz android_packages_apps_Trebuchet-2fd020860533e18c64a93d14d11cb2d34bc9cbaf.tar.bz2 android_packages_apps_Trebuchet-2fd020860533e18c64a93d14d11cb2d34bc9cbaf.zip |
Use Launcher.getLauncher(Context) instead of type-casting.
Bug: 32010039
Change-Id: Icb80d3e547a706740b84df2cb80f99e4a7f81c43
Diffstat (limited to 'src/com/android/launcher3/CellLayout.java')
-rw-r--r-- | src/com/android/launcher3/CellLayout.java | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |