mirror of
https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu-mainline.git
synced 2025-12-14 10:12:39 +00:00
android: Fix crash when decodeGameIcon creates a null Bitmap
This commit is contained in:
@@ -191,7 +191,7 @@ class GameAdapter(private val activity: AppCompatActivity) : RecyclerView.Adapte
|
||||
}
|
||||
}
|
||||
|
||||
private fun decodeGameIcon(uri: String): Bitmap {
|
||||
private fun decodeGameIcon(uri: String): Bitmap? {
|
||||
val data = NativeLibrary.GetIcon(uri)
|
||||
return BitmapFactory.decodeByteArray(
|
||||
data,
|
||||
|
||||
Reference in New Issue
Block a user