VERY experimental Nintendo Switch 2 emulator
C++
android: Don't show delete button for system driver
t8956e6b084c6c4a
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.ktindex d6f17cf29b..f218c76ef8 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.TextUtilsimport android.view.LayoutInflaterimport android.view.Viewimport android.view.ViewGroup+import org.yuzu.yuzu_emu.Rimport org.yuzu.yuzu_emu.databinding.CardDriverOptionBindingimport org.yuzu.yuzu_emu.features.settings.model.StringSettingimport org.yuzu.yuzu_emu.model.Driver@@ -57,13 +58,9 @@ class DriverAdapter(private val driverViewModel: DriverViewModel) :title.text = model.titleversion.text = model.versiondescription.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.GONEbuttonDelete.visibility = View.GONE}}