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

Commit b6def8f1 authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊 Committed by Mohammed Althaf T
Browse files

feat: Fix crash in emulator




(cherry picked from commit 159e237d)

Co-authored-by: default avataralthafvly <althafvly@gmail.com>
parent 360d6f86
Loading
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -174,7 +174,12 @@ class BlurWallpaperProvider(val context: Context) {
        mVibrancyPaint.colorFilter =
            ColorMatrixColorFilter(ColorMatrix().apply { setSaturation(1.25f) })

        val bitmap = Bitmap.createBitmap(wallpaper)
        val bitmap =
            Bitmap.createBitmap(
                wallpaper.width,
                wallpaper.height,
                wallpaper.config ?: Bitmap.Config.ARGB_8888
            )
        Canvas().apply {
            setBitmap(bitmap)
            drawBitmap(wallpaper, 0f, 0f, mVibrancyPaint)