summaryrefslogtreecommitdiffstats
path: root/src/android
diff options
context:
space:
mode:
authort895 <clombardo169@gmail.com>2024-01-29 12:59:34 +0100
committert895 <clombardo169@gmail.com>2024-01-29 12:59:34 +0100
commit15e8791f9d8abe8a0e7678b7b6380a519dd93c37 (patch)
treee2bf41fcf5b93b0015809464afce2ad50fa13b00 /src/android
parentMerge pull request #12840 from amazingfate/fix-gcc11 (diff)
downloadyuzu-15e8791f9d8abe8a0e7678b7b6380a519dd93c37.tar
yuzu-15e8791f9d8abe8a0e7678b7b6380a519dd93c37.tar.gz
yuzu-15e8791f9d8abe8a0e7678b7b6380a519dd93c37.tar.bz2
yuzu-15e8791f9d8abe8a0e7678b7b6380a519dd93c37.tar.lz
yuzu-15e8791f9d8abe8a0e7678b7b6380a519dd93c37.tar.xz
yuzu-15e8791f9d8abe8a0e7678b7b6380a519dd93c37.tar.zst
yuzu-15e8791f9d8abe8a0e7678b7b6380a519dd93c37.zip
Diffstat (limited to 'src/android')
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/adapters/DriverAdapter.kt7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/adapters/DriverAdapter.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/adapters/DriverAdapter.kt
index d6f17cf29..f218c76ef 100644
--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/adapters/DriverAdapter.kt
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/adapters/DriverAdapter.kt
@@ -7,6 +7,7 @@ import android.text.TextUtils
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
+import org.yuzu.yuzu_emu.R
import org.yuzu.yuzu_emu.databinding.CardDriverOptionBinding
import org.yuzu.yuzu_emu.features.settings.model.StringSetting
import org.yuzu.yuzu_emu.model.Driver
@@ -57,13 +58,9 @@ class DriverAdapter(private val driverViewModel: DriverViewModel) :
title.text = model.title
version.text = model.version
description.text = model.description
- if (model.description.isNotEmpty()) {
- version.visibility = View.VISIBLE
- description.visibility = View.VISIBLE
+ if (model.title != binding.root.context.getString(R.string.system_gpu_driver)) {
buttonDelete.visibility = View.VISIBLE
} else {
- version.visibility = View.GONE
- description.visibility = View.GONE
buttonDelete.visibility = View.GONE
}
}