mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2026-05-16 04:52:39 +02: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:
+1
-1
@@ -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>
|
||||
Reference in New Issue
Block a user