* Fix snackbar not showing in landscape
This affected also all tablets since they use the landscape view!
Added `setTextMaxLines` because for some reason the text is truncated on tablets.
Fixes#473.
Co-Authored-By: Jcuhfehl <91626737+Jcuhfehl@users.noreply.github.com>
* Remove unused import
---------
Co-authored-by: Jcuhfehl <91626737+Jcuhfehl@users.noreply.github.com>
* improvement: changed Person Detail Fragment
Changed the Person Detail Fragment to better use the available space.
Separate layout for larger screens/landscape orientation
* added values for different screen sizes
* fixed spacing
* refactor: rename `layout_height_def` to `person_detail_overview_height`
* refactor: remove `+` from some ids
I know that xml files are parsed top to bottom and the plus sign create a new id. But it seems to work even if the id is created after it is referenced.
I think this is cleaner
---------
Co-authored-by: Jarne Demeulemeester <jarnedemeulemeester@gmail.com>
Fixes#445
The episode indicator background was constrained to a 24dp box. If this box could not contain the count, then the count would wrap onto a new line.
The proposed solution is to use a rounded rectangle as the background instead. This can then expand into a chip as needed to accommodate larger numbers without wrapping.
* add pip
* fixed OnResume() OnStop()
add picture in picture button
add pip settings
* fixed sourceRectHint
add aspectRatio
* fix import
* improve hide playerControls
* add onNewIntent()
* Home button/gesture settings
* add summary
* add GESTURE_EXCLUSION_AREA_SIDE
* remove if else in sourceRectHint
fix onStop() behavior
* fix behavior when using pip button, now go home
* test
* fix onStop()
* fix: mpv aspect ratio
* fix when in PiP mode and starting new playback
* refactor: pip implementation
Remove option to disable pip button, always show the button when pip is supported
Remove the option to completely disable pip
Format using ktlint
* fix when in pip mode and play a new video
* fix recent app behavior
* lint
* Some adjustments
* fix: Aspect ratio is too extreme
* fix: Activity recreation
* fix merge issues
* fix merge issues
* ktlintFormat
* Add Picture in Picture
* fix
* fix sourceRectHint, updateZoomMode before entering pip
* lint
* fix: disable pip when player is locked
* lint
* lint
* fix: sourceRectHint
* fix: replace media items in mpv
* fix: don't show skip intro button in pip
* chore: remove `android:resizeableActivity` from manifest since the default is already `true`
* refactor: remove option to force 16:9 aspect ratio
* refactor: update strings
---------
Co-authored-by: Jarne Demeulemeester <jarnedemeulemeester@gmail.com>
* refactor: remove deprecated methods to hide system ui
* fix: action bar reappear after changing the brightness
* lint: run ktlintFormat
* refactor: remove sdk check
* fix: system bars stay visible after closing dialog
* fix: add player theme to set navigationbar and statusbar colors to transparent
* fix: draw behind navigationbar and statusbar
* refactor: remove swipeToShowStatusBars extensions
Remove fix for status bar reappearing on LineageOS after changing brightness with gesture.
This can always be added back when official Android version from manufacturers also need this fix.
---------
Co-authored-by: Jarne Demeulemeester <jarnedemeulemeester@gmail.com>