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/Hotseat.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/com/android/launcher3/Hotseat.java') diff --git a/src/com/android/launcher3/Hotseat.java b/src/com/android/launcher3/Hotseat.java index f9424d483..0fbbc19ab 100644 --- a/src/com/android/launcher3/Hotseat.java +++ b/src/com/android/launcher3/Hotseat.java @@ -67,7 +67,7 @@ public class Hotseat extends FrameLayout public Hotseat(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); - mLauncher = (Launcher) context; + mLauncher = Launcher.getLauncher(context); mHasVerticalHotseat = mLauncher.getDeviceProfile().isVerticalBarLayout(); mBackgroundColor = ColorUtils.setAlphaComponent( ContextCompat.getColor(context, R.color.all_apps_container_color), 0); -- cgit v1.2.3