Use Launcher.getLauncher(Context) instead of type-casting.
Bug: 32010039 Change-Id: Icb80d3e547a706740b84df2cb80f99e4a7f81c43
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user