mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-08-26 20:27:20 +00:00
Fixed issue where loop video would not reset when opening a playlist, causing the video to loop without being able to disable it.
This commit is contained in:
parent
ed1f7e7c72
commit
c703d018bd
3 changed files with 4 additions and 2 deletions
|
@ -217,7 +217,7 @@ class PlaylistsFragment : MainFragment() {
|
|||
var playlistsToReturn = pls;
|
||||
if(!_listPlaylistsSearch.text.isNullOrEmpty())
|
||||
playlistsToReturn = playlistsToReturn.filter { it.name.contains(_listPlaylistsSearch.text, true) };
|
||||
if(!_ordering.value.isNullOrEmpty()){
|
||||
if(!_ordering.value.isNullOrEmpty()) {
|
||||
playlistsToReturn = when(_ordering.value){
|
||||
"nameAsc" -> playlistsToReturn.sortedBy { it.name.lowercase() }
|
||||
"nameDesc" -> playlistsToReturn.sortedByDescending { it.name.lowercase() };
|
||||
|
|
|
@ -531,6 +531,8 @@ class FutoVideoPlayer : FutoVideoPlayerBase {
|
|||
fun setLoopVisible(visible: Boolean) {
|
||||
_control_loop.visibility = if (visible) View.VISIBLE else View.GONE;
|
||||
_control_loop_fullscreen.visibility = if (visible) View.VISIBLE else View.GONE;
|
||||
if (StatePlayer.instance.loopVideo && !visible)
|
||||
StatePlayer.instance.loopVideo = false
|
||||
}
|
||||
|
||||
fun stopAllGestures() {
|
||||
|
|
|
@ -233,7 +233,7 @@
|
|||
android:isScrollContainer="true"
|
||||
android:scrollbars="vertical"
|
||||
android:maxHeight="200dp"
|
||||
android:text="An error has occurredAn error has occurredAn error has occurredAn error has occurredAn error has occurredAn error has occurredAn error has occurredAn error has occurredAn error has occurredAn error has occurredAn error has occurredAn error has occurredAn error has occurredAn error has occurredAn error has occurredAn error has occurredAn error has occurredAn error has occurredAn error has occurredAn error has occurredAn error has occurredAn error has occurredAn error has occurredAn error has occurredAn error has occurredAn error has occurredAn error has occurredAn error has occurredAn error has occurredAn error has occurredAn error has occurredAn error has occurredAn error has occurredAn error has occurredAn error has occurredAn error has occurredAn error has occurredAn error has occurredAn error has occurredAn error has occurredAn error has occurredAn error has occurredAn error has occurredAn error has occurredAn error has occurredAn error has occurredAn error has occurred" />
|
||||
android:text="An error has occurred" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
Loading…
Add table
Add a link
Reference in a new issue