Merge "Adding some task views." into ub-launcher3-master

This commit is contained in:
Sunny Goyal
2017-11-10 21:13:14 +00:00
committed by Android (Google) Code Review
8 changed files with 333 additions and 7 deletions
+5 -5
View File
@@ -222,15 +222,12 @@ public class Launcher extends BaseActivity
@Thunk DragLayer mDragLayer;
private DragController mDragController;
public View mWeightWatcher;
private AppWidgetManagerCompat mAppWidgetManager;
private LauncherAppWidgetHost mAppWidgetHost;
private final int[] mTmpAddItemCellCoordinates = new int[2];
@Thunk Hotseat mHotseat;
private ViewGroup mOverviewPanel;
private View mAllAppsButton;
@@ -240,6 +237,9 @@ public class Launcher extends BaseActivity
@Thunk AllAppsContainerView mAppsView;
AllAppsTransitionController mAllAppsController;
// UI and state for the overview panel
private ViewGroup mOverviewPanel;
// We need to store the orientation Launcher was created with, due to a bug (b/64916689)
// that results in widgets being inflated in the wrong orientation.
private int mOrientation;
@@ -1307,8 +1307,8 @@ public class Launcher extends BaseActivity
return mHotseat;
}
public ViewGroup getOverviewPanel() {
return mOverviewPanel;
public <T extends ViewGroup> T getOverviewPanel() {
return (T) mOverviewPanel;
}
public DropTargetBar getDropTargetBar() {