2022-03-25 11:20:56 +01:00
|
|
|
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() {
|
2022-04-13 03:21:00 +02:00
|
|
|
return SharedPrefs.getBoolean(Objects.requireNonNull(YouTubeTikTokRoot_Application.getAppContext()), "xfile_create_button_hidden", true);
|
2022-03-25 11:20:56 +01:00
|
|
|
}
|
2022-04-19 17:53:38 +02:00
|
|
|
|
|
|
|
public static boolean isShortsButtonHidden() {
|
|
|
|
return SharedPrefs.getBoolean(Objects.requireNonNull(YouTubeTikTokRoot_Application.getAppContext()), "xfile_shorts_button_hidden", true);
|
|
|
|
}
|
2022-03-25 11:20:56 +01:00
|
|
|
}
|