fix: keep the GPU hardware fallback non-null when Build.HARDWARE is unset

This commit is contained in:
xXJsonDeruloXx committed 2026-10-18 17:49:52 -04:00
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"