package app.revanced.extension.reddit.settings.preference;

import android.content.Context;
import android.preference.SwitchPreference;

import app.revanced.extension.shared.settings.BooleanSetting;

@SuppressWarnings("deprecation")
public class TogglePreference extends SwitchPreference {
    public TogglePreference(Context context, String title, String summary, BooleanSetting setting) {
        super(context);
        this.setTitle(title);
        this.setSummary(summary);
        this.setKey(setting.key);
        this.setChecked(setting.get());
    }
}
