Remove deprecated initOverlay interface used by TaskOverlayFactoryGo
Bug: 350931107 Test: presubmit Flag: EXEMPT refactor Change-Id: I3d03254d7c33118536e66268c1dbfebdf1130647
This commit is contained in:
@@ -31,6 +31,7 @@ import android.content.ContentResolver;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.SharedPreferences;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.Color;
|
||||
import android.graphics.Matrix;
|
||||
import android.graphics.drawable.ColorDrawable;
|
||||
@@ -47,6 +48,7 @@ import android.widget.Button;
|
||||
import android.widget.TextView;
|
||||
|
||||
import androidx.annotation.IntDef;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.annotation.VisibleForTesting;
|
||||
|
||||
import com.android.launcher3.BaseActivity;
|
||||
@@ -58,7 +60,6 @@ import com.android.quickstep.util.RecentsOrientedState;
|
||||
import com.android.quickstep.views.GoOverviewActionsView;
|
||||
import com.android.quickstep.views.TaskContainer;
|
||||
import com.android.systemui.shared.recents.model.Task;
|
||||
import com.android.systemui.shared.recents.model.ThumbnailData;
|
||||
|
||||
import java.lang.annotation.Retention;
|
||||
|
||||
@@ -131,7 +132,7 @@ public final class TaskOverlayFactoryGo extends TaskOverlayFactory {
|
||||
* Called when the current task is interactive for the user
|
||||
*/
|
||||
@Override
|
||||
public void initOverlay(Task task, ThumbnailData thumbnail, Matrix matrix,
|
||||
public void initOverlay(Task task, @Nullable Bitmap thumbnail, Matrix matrix,
|
||||
boolean rotated) {
|
||||
if (mDialog != null && mDialog.isShowing()) {
|
||||
// Redraw the dialog in case the layout changed
|
||||
|
||||
@@ -52,7 +52,6 @@ import com.android.quickstep.views.RecentsViewContainer;
|
||||
import com.android.quickstep.views.TaskContainer;
|
||||
import com.android.quickstep.views.TaskView;
|
||||
import com.android.systemui.shared.recents.model.Task;
|
||||
import com.android.systemui.shared.recents.model.ThumbnailData;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@@ -185,17 +184,6 @@ public class TaskOverlayFactory implements ResourceBasedOverride {
|
||||
return mTaskContainer.getTaskView();
|
||||
}
|
||||
|
||||
/**
|
||||
* Called when the current task is interactive for the user
|
||||
*
|
||||
* @deprecated TODO(b/350931107): Remove this interface once TaskOverlayFactoryGo is updated
|
||||
*/
|
||||
@Deprecated
|
||||
public void initOverlay(Task task, ThumbnailData thumbnail, Matrix matrix,
|
||||
boolean rotated) {
|
||||
initOverlay(task, thumbnail.getThumbnail(), matrix, rotated);
|
||||
}
|
||||
|
||||
/**
|
||||
* Called when the current task is interactive for the user
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user