mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 18:06:48 +00:00
Use Launcher.getLauncher(Context) instead of type-casting.
Bug: 32010039 Change-Id: Icb80d3e547a706740b84df2cb80f99e4a7f81c43
This commit is contained in:
@@ -48,7 +48,7 @@ public class ShortcutAndWidgetContainer extends ViewGroup {
|
||||
|
||||
public ShortcutAndWidgetContainer(Context context) {
|
||||
super(context);
|
||||
mLauncher = (Launcher) context;
|
||||
mLauncher = Launcher.getLauncher(context);
|
||||
mWallpaperManager = WallpaperManager.getInstance(context);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user