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

Commit f86e8845 authored by Xiang Wang's avatar Xiang Wang Committed by Android (Google) Code Review
Browse files

Merge "Move the BitmapUtil to com.android.internal package" into tm-dev

parents 324b07b4 8dd3e6e7
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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);
    }