diff options
| author | 2024-01-29 06:59:34 -0500 | |
|---|---|---|
| committer | 2024-01-29 06:59:34 -0500 | |
| commit | 15e8791f9d8abe8a0e7678b7b6380a519dd93c37 (patch) | |
| tree | e2bf41fcf5b93b0015809464afce2ad50fa13b00 /src | |
| parent | Merge pull request #12840 from amazingfate/fix-gcc11 (diff) | |
| download | yuzu-15e8791f9d8abe8a0e7678b7b6380a519dd93c37.tar.gz yuzu-15e8791f9d8abe8a0e7678b7b6380a519dd93c37.tar.xz yuzu-15e8791f9d8abe8a0e7678b7b6380a519dd93c37.zip | |
android: Don't show delete button for system driver
Diffstat (limited to 'src')
| -rw-r--r-- | src/android/app/src/main/java/org/yuzu/yuzu_emu/adapters/DriverAdapter.kt | 7 |
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 | |||
| 7 | import android.view.LayoutInflater | 7 | import android.view.LayoutInflater |
| 8 | import android.view.View | 8 | import android.view.View |
| 9 | import android.view.ViewGroup | 9 | import android.view.ViewGroup |
| 10 | import org.yuzu.yuzu_emu.R | ||
| 10 | import org.yuzu.yuzu_emu.databinding.CardDriverOptionBinding | 11 | import org.yuzu.yuzu_emu.databinding.CardDriverOptionBinding |
| 11 | import org.yuzu.yuzu_emu.features.settings.model.StringSetting | 12 | import org.yuzu.yuzu_emu.features.settings.model.StringSetting |
| 12 | import org.yuzu.yuzu_emu.model.Driver | 13 | import org.yuzu.yuzu_emu.model.Driver |
| @@ -57,13 +58,9 @@ class DriverAdapter(private val driverViewModel: DriverViewModel) : | |||
| 57 | title.text = model.title | 58 | title.text = model.title |
| 58 | version.text = model.version | 59 | version.text = model.version |
| 59 | description.text = model.description | 60 | description.text = model.description |
| 60 | if (model.description.isNotEmpty()) { | 61 | if (model.title != binding.root.context.getString(R.string.system_gpu_driver)) { |
| 61 | version.visibility = View.VISIBLE | ||
| 62 | description.visibility = View.VISIBLE | ||
| 63 | buttonDelete.visibility = View.VISIBLE | 62 | buttonDelete.visibility = View.VISIBLE |
| 64 | } else { | 63 | } else { |
| 65 | version.visibility = View.GONE | ||
| 66 | description.visibility = View.GONE | ||
| 67 | buttonDelete.visibility = View.GONE | 64 | buttonDelete.visibility = View.GONE |
| 68 | } | 65 | } |
| 69 | } | 66 | } |