mirror of
https://github.com/starr-dusT/yuzu-mainline
synced 2024-03-05 21:12:25 -08:00
android: Fix crash when decodeGameIcon creates a null Bitmap
This commit is contained in:
parent
72679c7bae
commit
72bef4fa95
@ -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)
|
val data = NativeLibrary.GetIcon(uri)
|
||||||
return BitmapFactory.decodeByteArray(
|
return BitmapFactory.decodeByteArray(
|
||||||
data,
|
data,
|
||||||
|
Loading…
Reference in New Issue
Block a user