From ceb97beef951a7919c7e9d6b5cf265f17f92204a Mon Sep 17 00:00:00 2001 From: Gamer64ytb <76565986+Gamer64ytb@users.noreply.github.com> Date: Fri, 17 May 2024 22:18:22 +0200 Subject: [PATCH] Android: Fix non-runnable settings not being still changeable after close a game randomly Co-Authored-By: Ishan09811 <156402647+ishan09811@users.noreply.github.com> --- .../features/settings/ui/viewholder/RunnableViewHolder.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/android/app/src/main/java/io/github/lime3ds/android/features/settings/ui/viewholder/RunnableViewHolder.kt b/src/android/app/src/main/java/io/github/lime3ds/android/features/settings/ui/viewholder/RunnableViewHolder.kt index 5066e1bd8..4ea8202f7 100644 --- a/src/android/app/src/main/java/io/github/lime3ds/android/features/settings/ui/viewholder/RunnableViewHolder.kt +++ b/src/android/app/src/main/java/io/github/lime3ds/android/features/settings/ui/viewholder/RunnableViewHolder.kt @@ -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() } }