Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d889ee37 authored by Jordan Silva's avatar Jordan Silva Committed by Android (Google) Code Review
Browse files

Merge "Add a refactored TaskThumbnailView" into main

parents f87a1ec9 e21525da
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -230,6 +230,13 @@ flag {
    bug: "323886237"
}

flag {
    name: "enable_refactor_task_thumbnail"
    namespace: "launcher"
    description: "Enables rewritten version of TaskThumbnailViews in Overview"
    bug: "331753115"
}

flag {
  name: "enable_handle_delayed_gesture_callbacks"
  namespace: "launcher"
+3 −3
Original line number Diff line number Diff line
@@ -56,7 +56,7 @@ import com.android.launcher3.views.ArrowTipView;
import com.android.quickstep.util.AssistContentRequester;
import com.android.quickstep.util.RecentsOrientedState;
import com.android.quickstep.views.GoOverviewActionsView;
import com.android.quickstep.views.TaskThumbnailView;
import com.android.quickstep.views.TaskThumbnailViewDeprecated;
import com.android.systemui.shared.recents.model.Task;
import com.android.systemui.shared.recents.model.ThumbnailData;

@@ -101,7 +101,7 @@ public final class TaskOverlayFactoryGo extends TaskOverlayFactory {
    /**
     * Create a new overlay instance for the given View
     */
    public TaskOverlayGo createOverlay(TaskThumbnailView thumbnailView) {
    public TaskOverlayGo createOverlay(TaskThumbnailViewDeprecated thumbnailView) {
        return new TaskOverlayGo(thumbnailView, mContentRequester);
    }

@@ -120,7 +120,7 @@ public final class TaskOverlayFactoryGo extends TaskOverlayFactory {
        private OverlayDialogGo mDialog;
        private ArrowTipView mArrowTipView;

        private TaskOverlayGo(TaskThumbnailView taskThumbnailView,
        private TaskOverlayGo(TaskThumbnailViewDeprecated taskThumbnailView,
                AssistContentRequester assistContentRequester) {
            super(taskThumbnailView);
            mFactoryContentRequester = assistContentRequester;
+1 −1
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@
    launcher:focusBorderColor="?androidprv:attr/materialColorOutline"
    launcher:hoverBorderColor="?androidprv:attr/materialColorPrimary">

    <com.android.quickstep.views.TaskThumbnailView
    <com.android.quickstep.views.TaskThumbnailViewDeprecated
        android:id="@+id/snapshot"
        android:layout_width="match_parent"
        android:layout_height="match_parent"/>
+1 −1
Original line number Diff line number Diff line
@@ -42,7 +42,7 @@
         views that do not inherint from TaskView only or create a generic TaskView that have
         N number of tasks.
     -->
    <com.android.quickstep.views.TaskThumbnailView
    <com.android.quickstep.views.TaskThumbnailViewDeprecated
        android:id="@+id/snapshot"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
+2 −2
Original line number Diff line number Diff line
@@ -33,12 +33,12 @@
    launcher:focusBorderColor="?androidprv:attr/materialColorOutline"
    launcher:hoverBorderColor="?androidprv:attr/materialColorPrimary">

    <com.android.quickstep.views.TaskThumbnailView
    <com.android.quickstep.views.TaskThumbnailViewDeprecated
        android:id="@+id/snapshot"
        android:layout_width="match_parent"
        android:layout_height="match_parent"/>

    <com.android.quickstep.views.TaskThumbnailView
    <com.android.quickstep.views.TaskThumbnailViewDeprecated
        android:id="@+id/bottomright_snapshot"
        android:layout_width="match_parent"
        android:layout_height="match_parent"/>
Loading