Put taskbar all apps in separate overlay window and stash taskbar.
All apps should display below system UI components such as the notification tray and power menu, so an overlay window is more appropriate. As a result, all apps has a separate window activity context, but some properties are delegated to the taskbar activity context. Taskbar should also be stashed while all apps is open. Change-Id: I593457708779d84a0ab8b949a966d247d0a2e1b7 Test: Manual Bug: 216843189 Fix: 217383817
This commit is contained in:
1 parent
b21ef1d1f8
commit
473b980bf9
16 files changed
+596
-182
No files matched your search
@@ -73,7 +73,7 @@ import java.util.Arrays;
|
||||
/**
|
||||
* Handles long click on Taskbar items to start a system drag and drop operation.
|
||||
*/
|
||||
public class TaskbarDragController extends DragController<TaskbarActivityContext> implements
|
||||
public class TaskbarDragController extends DragController<BaseTaskbarContext> implements
|
||||
TaskbarControllers.LoggableTaskbarController {
|
||||
|
||||
private static boolean DEBUG_DRAG_SHADOW_SURFACE = false;
|
||||
@@ -93,7 +93,7 @@ public class TaskbarDragController extends DragController<TaskbarActivityContext
|
||||
// Animation for the drag shadow back into position after an unsuccessful drag
|
||||
private ValueAnimator mReturnAnimator;
|
||||
|
||||
public TaskbarDragController(TaskbarActivityContext activity) {
|
||||
public TaskbarDragController(BaseTaskbarContext activity) {
|
||||
super(activity);
|
||||
Resources resources = mActivity.getResources();
|
||||
mDragIconSize = resources.getDimensionPixelSize(R.dimen.taskbar_icon_drag_icon_size);
|
||||
@@ -108,7 +108,7 @@ public class TaskbarDragController extends DragController<TaskbarActivityContext
|
||||
* generate the ClipDescription and Intent.
|
||||
* @return Whether {@link View#startDragAndDrop} started successfully.
|
||||
*/
|
||||
protected boolean startDragOnLongClick(View view) {
|
||||
public boolean startDragOnLongClick(View view) {
|
||||
return startDragOnLongClick(view, null, null);
|
||||
}
|
||||
|
||||
@@ -129,8 +129,7 @@ public class TaskbarDragController extends DragController<TaskbarActivityContext
|
||||
}
|
||||
|
||||
BubbleTextView btv = (BubbleTextView) view;
|
||||
|
||||
mActivity.setTaskbarWindowFullscreen(true);
|
||||
mActivity.onDragStart();
|
||||
btv.post(() -> {
|
||||
DragView dragView = startInternalDrag(btv, dragPreviewProvider);
|
||||
if (iconShift != null) {
|
||||
@@ -183,7 +182,7 @@ public class TaskbarDragController extends DragController<TaskbarActivityContext
|
||||
}
|
||||
};
|
||||
if (FeatureFlags.ENABLE_TASKBAR_POPUP_MENU.get()) {
|
||||
PopupContainerWithArrow<TaskbarActivityContext> popupContainer =
|
||||
PopupContainerWithArrow<BaseTaskbarContext> popupContainer =
|
||||
mControllers.taskbarPopupController.showForIcon(btv);
|
||||
if (popupContainer != null) {
|
||||
dragOptions.preDragCondition = popupContainer.createPreDragCondition(false);
|
||||
|
||||
Reference in new issue
Block a user