Android: Fix non-runnable settings not being still changeable after close a game randomly

Co-Authored-By: Ishan09811 <156402647+ishan09811@users.noreply.github.com>
This commit is contained in:
Gamer64ytb 2024-05-17 22:18:22 +02:00 committed by OpenSauce
parent 8a9ec7e0fa
commit ceb97beef9

View file

@ -44,10 +44,10 @@ class RunnableViewHolder(val binding: ListItemSettingBinding, adapter: SettingsA
} }
override fun onClick(clicked: View) { override fun onClick(clicked: View) {
if (!setting.isRuntimeRunnable && !NativeLibrary.isRunning()) { if (!setting.isRuntimeRunnable && NativeLibrary.isRunning()) {
setting.runnable.invoke()
} else {
adapter.onClickDisabledSetting() adapter.onClickDisabledSetting()
} else {
setting.runnable.invoke()
} }
} }