From 8dd3e6e7ce351c0f1cc2b5d22cf7cb5b857a9f1e Mon Sep 17 00:00:00 2001 From: Xiang Wang Date: Wed, 16 Feb 2022 14:22:10 -0800 Subject: [PATCH] Move the BitmapUtil to com.android.internal package Bug: 219992742 Test: N/A Change-Id: I1fa145c18799904a63613ab861a7635cc74dcfce --- .../src/com/android/quickstep/util/ImageActionUtils.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/quickstep/src/com/android/quickstep/util/ImageActionUtils.java b/quickstep/src/com/android/quickstep/util/ImageActionUtils.java index 51a9915523..63d5b0dd50 100644 --- a/quickstep/src/com/android/quickstep/util/ImageActionUtils.java +++ b/quickstep/src/com/android/quickstep/util/ImageActionUtils.java @@ -48,10 +48,10 @@ import androidx.annotation.WorkerThread; import androidx.core.content.FileProvider; import com.android.internal.app.ChooserActivity; +import com.android.internal.util.ScreenshotHelper; import com.android.launcher3.BuildConfig; import com.android.quickstep.SystemUiProxy; import com.android.systemui.shared.recents.model.Task; -import com.android.systemui.shared.recents.utilities.BitmapUtil; import java.io.File; import java.io.FileOutputStream; @@ -77,7 +77,8 @@ public class ImageActionUtils { public static void saveScreenshot(SystemUiProxy systemUiProxy, Bitmap screenshot, Rect screenshotBounds, Insets visibleInsets, Task.TaskKey task) { - systemUiProxy.handleImageBundleAsScreenshot(BitmapUtil.hardwareBitmapToBundle(screenshot), + systemUiProxy.handleImageBundleAsScreenshot( + ScreenshotHelper.HardwareBitmapBundler.hardwareBitmapToBundle(screenshot), screenshotBounds, visibleInsets, task); }