mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-28 07:50:31 +05:30
bug fixes
This commit is contained in:
parent
7837ce1c60
commit
67982186c6
@ -33,13 +33,17 @@ class PlayingQueueSheet : BottomSheetDialogFragment() {
|
||||
|
||||
binding.shuffle.setOnClickListener {
|
||||
val streams = PlayingQueue.getStreams()
|
||||
streams.subList(PlayingQueue.currentIndex(), PlayingQueue.size()).shuffle()
|
||||
adapter.notifyItemRangeChanged(0, PlayingQueue.size())
|
||||
val size = PlayingQueue.size()
|
||||
streams.subList(PlayingQueue.currentIndex(), size).shuffle()
|
||||
adapter.notifyItemRangeChanged(0, size)
|
||||
}
|
||||
|
||||
binding.clear.setOnClickListener {
|
||||
val streams = PlayingQueue.getStreams()
|
||||
streams.subList(PlayingQueue.currentIndex(), PlayingQueue.size()).clear()
|
||||
val currentIndex = PlayingQueue.currentIndex()
|
||||
val size = PlayingQueue.size()
|
||||
streams.subList(currentIndex, size).clear()
|
||||
adapter.notifyItemRangeRemoved(currentIndex + 1, size)
|
||||
}
|
||||
|
||||
binding.bottomControls.setOnClickListener {
|
||||
|
@ -1,7 +1,7 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:tint="#000000"
|
||||
android:tint="?attr/colorControlNormal"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
|
@ -26,7 +26,8 @@
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/options_recycler"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/bottom_controls"
|
||||
|
Loading…
x
Reference in New Issue
Block a user