From 2ec757778825d21d7a22e8355d05e0cc415ab022 Mon Sep 17 00:00:00 2001 From: Charles Lombardo Date: Wed, 1 Feb 2023 00:51:48 -0500 Subject: [PATCH] Android: Fix settings being editable when marked otherwise --- .../settings/ui/viewholder/SwitchSettingViewHolder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/settings/ui/viewholder/SwitchSettingViewHolder.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/settings/ui/viewholder/SwitchSettingViewHolder.java index 8e568baf32..c4245a9bcd 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/settings/ui/viewholder/SwitchSettingViewHolder.java +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/settings/ui/viewholder/SwitchSettingViewHolder.java @@ -39,7 +39,7 @@ public final class SwitchSettingViewHolder extends SettingViewHolder mBinding.textSettingDescription.setText(item.getDescription()); mBinding.settingSwitch.setChecked(mItem.isChecked(getAdapter().getSettings())); - mBinding.settingSwitch.setEnabled(true); + mBinding.settingSwitch.setEnabled(mItem.isEditable()); // Check for IPL to make sure user can skip. if (mItem.getSetting() == BooleanSetting.MAIN_SKIP_IPL)