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

Commit 22a5ec7b authored by Charlie Anderson's avatar Charlie Anderson
Browse files

Add clarifying comment for createDefaultFlatBitmap utility method

Flag: EXEMPT just a comment
Test: N/A just a comment
Change-Id: Idcef42864521d9294dc87ccaa0436f2bb79c5e8c
parent 9ff30d93
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -80,6 +80,8 @@ object GraphicsUtils {
    /** Compresses BitmapInfo default shape bitmap to a byte array **/
    @JvmStatic
    fun createDefaultFlatBitmap(bitmapInfo: BitmapInfo): ByteArray {
        // BitmapInfo uses immutable hardware bitmaps, so we need to make a software copy to apply
        // the default shape mask.
        val bitmap = bitmapInfo.icon.copy(Bitmap.Config.ARGB_8888, /* isMutable **/ true)
        val cropBitmap = Bitmap.createBitmap(bitmap.width, bitmap.height, Bitmap.Config.ARGB_8888)
        val canvas = Canvas(cropBitmap)