Android: Fix settings being editable when marked otherwise

This commit is contained in:
Charles Lombardo 2023-02-01 00:51:48 -05:00
parent 2a2ee5d543
commit 2ec7577788

View File

@ -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)