mirror of
https://github.com/revanced/revanced-integrations.git
synced 2024-06-02 11:26:18 +02:00
36 lines
1.2 KiB
Java
36 lines
1.2 KiB
Java
package app.revanced.integrations.tiktok.settings.preference.categories;
|
|
|
|
import android.content.Context;
|
|
import android.preference.PreferenceScreen;
|
|
import app.revanced.integrations.tiktok.settings.Settings;
|
|
import app.revanced.integrations.tiktok.settings.SettingsStatus;
|
|
import app.revanced.integrations.tiktok.settings.preference.DownloadPathPreference;
|
|
import app.revanced.integrations.tiktok.settings.preference.TogglePreference;
|
|
|
|
@SuppressWarnings({"deprecation", "unused"})
|
|
public class DownloadsPreferenceCategory extends ConditionalPreferenceCategory {
|
|
public DownloadsPreferenceCategory(Context context, PreferenceScreen screen) {
|
|
super(context, screen);
|
|
setTitle("Downloads");
|
|
}
|
|
|
|
@Override
|
|
public boolean getSettingsStatus() {
|
|
return SettingsStatus.downloadEnabled;
|
|
}
|
|
|
|
@Override
|
|
public void addPreferences(Context context) {
|
|
addPreference(new DownloadPathPreference(
|
|
context,
|
|
"Download path",
|
|
Settings.DOWNLOAD_PATH
|
|
));
|
|
addPreference(new TogglePreference(
|
|
context,
|
|
"Remove watermark", "",
|
|
Settings.DOWNLOAD_WATERMARK
|
|
));
|
|
}
|
|
}
|