mirror of
https://github.com/revanced/revanced-integrations.git
synced 2024-06-02 11:26:18 +02:00
23 lines
674 B
Java
23 lines
674 B
Java
package app.revanced.integrations.tiktok.settings.preference.categories;
|
|
|
|
import android.content.Context;
|
|
import android.preference.PreferenceCategory;
|
|
import android.preference.PreferenceScreen;
|
|
|
|
@SuppressWarnings({"deprecation", "unused"})
|
|
public abstract class ConditionalPreferenceCategory extends PreferenceCategory {
|
|
public ConditionalPreferenceCategory(Context context, PreferenceScreen screen) {
|
|
super(context);
|
|
|
|
if (getSettingsStatus()) {
|
|
screen.addPreference(this);
|
|
addPreferences(context);
|
|
}
|
|
}
|
|
|
|
public abstract boolean getSettingsStatus();
|
|
|
|
public abstract void addPreferences(Context context);
|
|
}
|
|
|