mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-05 20:45:43 +00:00
fix: keep the GPU hardware fallback non-null when Build.HARDWARE is unset
This commit is contained in:
1 parent
673c9869f8
commit
74a77c1402
1 file changed
+1
-1
@@ -78,7 +78,7 @@ data class GpuInfo(
|
||||
val samsung = Build.MANUFACTURER.equals("samsung", ignoreCase = true)
|
||||
val isX1 = model == 741 || raw?.contains("X1-", ignoreCase = true) == true
|
||||
val gpuDisplayName = when {
|
||||
!adreno -> Build.HARDWARE.ifBlank { UNNAMED }
|
||||
!adreno -> (Build.HARDWARE ?: "").ifBlank { UNNAMED }
|
||||
isX1 -> "Adreno X1-85"
|
||||
model > 0 -> "Adreno $model"
|
||||
else -> "Adreno"
|
||||
|
||||
Reference in new issue
Block a user