Merge "Use Launcher.getLauncher(Context) instead of type-casting." into ub-launcher3-calgary-polish

This commit is contained in:
Tony Wickham authored and Android (Google) Code Review committed 2016-10-12 21:22:05 +00:00
commit cf6195268d
19 files changed
+29 -25

No files matched your search

+1 -1
View File
@@ -338,7 +338,7 @@ public class Workspace extends PagedView
public Workspace(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
mLauncher = (Launcher) context;
mLauncher = Launcher.getLauncher(context);
mStateTransitionAnimation = new WorkspaceStateTransitionAnimation(mLauncher, this);
final Resources res = getResources();
DeviceProfile grid = mLauncher.getDeviceProfile();