OSDN Git Service

Merge "Use Launcher.getLauncher(Context) instead of type-casting." into ub-launcher3...
[android-x86/packages-apps-Launcher3.git] / src / com / android / launcher3 / allapps / AllAppsRecyclerViewContainerView.java
index 1d5b209..b5afb2b 100644 (file)
@@ -49,7 +49,7 @@ public class AllAppsRecyclerViewContainerView extends FrameLayout
     public AllAppsRecyclerViewContainerView(Context context, AttributeSet attrs, int defStyleAttr) {
         super(context, attrs, defStyleAttr);
 
-        Launcher launcher = (Launcher) context;
+        Launcher launcher = Launcher.getLauncher(context);
         DeviceProfile grid = launcher.getDeviceProfile();
 
         mTouchFeedbackView = new ClickShadowView(context);