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

Commit 504e10d9 authored by Satish Yalla's avatar Satish Yalla Committed by Android (Google) Code Review
Browse files

Revert "Clear Bitmap density to render correctly in Overview"

This reverts commit c435c3e2.

Reason for revert: Droidmonitor created revert due to Jan regression b/428896740. Will be verifying through ABTD before submission

Change-Id: I3ecf80307744ca5fc7b55d3d4d3bee4a49f9573f
parent c435c3e2
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -65,7 +65,6 @@ android_library {
        "androidx.lifecycle_lifecycle-runtime-ktx",
        "androidx.lifecycle_lifecycle-viewmodel-ktx",
        "androidx.recyclerview_recyclerview",
        "com_android_launcher3_flags_lib",
        "kotlinx_coroutines_android",
        "kotlinx_coroutines",
        "dagger2",
+9 −16
Original line number Diff line number Diff line
@@ -24,7 +24,6 @@ import android.graphics.Rect
import android.util.Log
import android.view.WindowInsetsController.Appearance
import android.window.TaskSnapshot
import com.android.launcher3.Flags.enableRefactorTaskThumbnail

/** Data for a single thumbnail. */
data class ThumbnailData(
@@ -64,11 +63,6 @@ data class ThumbnailData(
                    ex,
                )
            }
            if (enableRefactorTaskThumbnail()) {
                // These bitmaps are used with custom rendering logic (PreviewPositionHelper) that
                // doesn't account for bitmap density
                thumbnail?.density = Bitmap.DENSITY_NONE
            } else {
            if (snapshot.densityDpi > 0 && thumbnail?.density != snapshot.densityDpi) {
                Log.d(
                    TAG,
@@ -79,7 +73,6 @@ data class ThumbnailData(
                )
                thumbnail?.density = snapshot.densityDpi
            }
            }
            return thumbnail
                ?: Bitmap.createBitmap(snapshot.taskSize.x, snapshot.taskSize.y, ARGB_8888).apply {
                    eraseColor(Color.BLACK)