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) {
if (!setting.isRuntimeRunnable && !NativeLibrary.isRunning()) {
setting.runnable.invoke()
} else {
if (!setting.isRuntimeRunnable && NativeLibrary.isRunning()) {
adapter.onClickDisabledSetting()
} else {
setting.runnable.invoke()
}
}