Colton Idle
06/18/2024, 4:45 AMviewModel.launch(<http://Dispatchers.IO|Dispatchers.IO>) that getsAllPackages.map { mapToAppIconAndName(it) }
The mapToAppIconAndName takes the packageinfo and gives me a dawable and a string for the icon and the name respectively.
then in my lazy grid I take the drawable and call
Image(
bitmap = it.drawable.toBitmap().asImageBitmap(),
I'm wondering if I should try to move the above to my viewmodel w/ background thread. or at that point would keeping 300+ image bitmaps in memory be bad?Colton Idle
06/18/2024, 5:05 AMBen Trengrove [G]
06/18/2024, 9:04 AMColton Idle
06/19/2024, 3:10 PM