mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-12-25 16:42:39 -06:00
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:
parent
8a9ec7e0fa
commit
ceb97beef9
1 changed files with 3 additions and 3 deletions
|
@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue