mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 10:48:19 +00:00
Use Launcher.getLauncher(Context) instead of type-casting.
Bug: 32010039 Change-Id: Icb80d3e547a706740b84df2cb80f99e4a7f81c43
This commit is contained in:
@@ -83,7 +83,7 @@ public abstract class ButtonDropTarget extends TextView
|
||||
|
||||
public ButtonDropTarget(Context context, AttributeSet attrs, int defStyle) {
|
||||
super(context, attrs, defStyle);
|
||||
mLauncher = (Launcher) context;
|
||||
mLauncher = Launcher.getLauncher(context);
|
||||
|
||||
Resources resources = getResources();
|
||||
mBottomDragPadding = resources.getDimensionPixelSize(R.dimen.drop_target_drag_padding);
|
||||
|
||||
Reference in New Issue
Block a user