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

Commit 56cdb636 authored by jo's avatar jo
Browse files

ctrl+z

parent 6a825c27
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -31,10 +31,18 @@ class ImagesLoader(private val images: List<String>) {
    }

    private fun sortByKey(images: List<Image>): List<Bitmap> {
        val result = ArrayList<Bitmap>()
        val result = kotlin.arrayOfNulls<Bitmap>(images.size)
        images.forEach {
            result[it.key] = it.image
        }
        return makeNonNull(result)
    }

    private fun makeNonNull(images: Array<Bitmap?>):List<Bitmap> {
        val result = ArrayList<Bitmap>()
        images.forEach {
            result.add(it!!)
        }
        return result
    }