mirror of
https://github.com/revanced/revanced-patches
synced 2025-02-21 01:57:31 +01:00
26 lines
1.0 KiB
Java
26 lines
1.0 KiB
Java
package fi.razerman.youtube.preferences;
|
|
|
|
import com.google.android.apps.youtube.app.YouTubeTikTokRoot_Application;
|
|
|
|
import java.util.Objects;
|
|
|
|
import fi.razerman.youtube.Helpers.SharedPrefs;
|
|
|
|
public class BooleanPreferences {
|
|
public static boolean isTapSeekingEnabled() {
|
|
return SharedPrefs.getBoolean(Objects.requireNonNull(YouTubeTikTokRoot_Application.getAppContext()), "xfile_enable_tap_seeking", true);
|
|
}
|
|
|
|
public static boolean isExoplayerV2Enabled() {
|
|
return SharedPrefs.getBoolean(Objects.requireNonNull(YouTubeTikTokRoot_Application.getAppContext()), "xfile_exoplayer_v2", true);
|
|
}
|
|
|
|
public static boolean isCreateButtonHidden() {
|
|
return SharedPrefs.getBoolean(Objects.requireNonNull(YouTubeTikTokRoot_Application.getAppContext()), "xfile_create_button_hidden", true);
|
|
}
|
|
|
|
public static boolean isShortsButtonHidden() {
|
|
return SharedPrefs.getBoolean(Objects.requireNonNull(YouTubeTikTokRoot_Application.getAppContext()), "xfile_shorts_button_hidden", true);
|
|
}
|
|
}
|