update settings

This commit is contained in:
Kai 2024-09-11 21:45:18 -05:00
commit d0e4a0aa1f
No known key found for this signature in database
2 changed files with 1 additions and 12 deletions

View file

@ -466,17 +466,6 @@ class Settings : FragmentedStorageFileJson() {
@FormField(R.string.reverse_portrait, FieldForm.TOGGLE, R.string.reverse_portrait_description, 14)
var reversePortrait: Boolean = false;
@FormField(R.string.rotation_zone, FieldForm.DROPDOWN, R.string.rotation_zone_description, 15)
@DropdownFieldOptionsId(R.array.rotation_zone)
var rotationZone: Int = 2;
@FormField(R.string.stability_threshold_time, FieldForm.DROPDOWN, R.string.stability_threshold_time_description, 16)
@DropdownFieldOptionsId(R.array.rotation_threshold_time)
var stabilityThresholdTime: Int = 1;
@FormField(R.string.full_autorotate_lock, FieldForm.TOGGLE, R.string.full_autorotate_lock_description, 17)
var fullAutorotateLock: Boolean = false;
@FormField(R.string.prefer_webm, FieldForm.TOGGLE, R.string.prefer_webm_description, 18)
var preferWebmVideo: Boolean = false;
@FormField(R.string.prefer_webm_audio, FieldForm.TOGGLE, R.string.prefer_webm_audio_description, 19)

View file

@ -117,8 +117,8 @@ class VideoDetailFragment : MainFragment {
val a = activity ?: return
// only applies to small windows
val isFullScreenPortraitAllowed = Settings.instance.playback.fullscreenPortrait
val isReversePortraitAllowed = Settings.instance.playback.reversePortrait
val fullAutorotateLock = Settings.instance.playback.fullAutorotateLock
val rotationLock = StatePlayer.instance.rotationLock
// For small windows if the device isn't landscape right now and full screen portrait isn't allowed then we should force landscape