pull/808/head
deniscerri 1 year ago
parent 476220b3c6
commit ecbaef754a
No known key found for this signature in database
GPG Key ID: 95C43D517D830350

@ -2232,8 +2232,11 @@ object UiUtil {
val tmp = list.toMutableList()
tmp.addAll(0, defaultSourceTitles.mapIndexed { index, s -> "${s}___${defaultSourceValues[index]}" })
tmp.forEach { s ->
val title = s.split("___")[0]
val source = s.split("___")[1]
val arr = s.split("___")
if (arr.size < 2) return@forEach
val title = arr[0]
val source = arr[1]
val isEditable = !defaultSourceValues.contains(source)
val child = LayoutInflater.from(context).inflate(R.layout.custom_ytdlp_source, null)
child.findViewById<MaterialCardView>(R.id.sampleCustomSource).setOnClickListener {

@ -28,7 +28,7 @@
android:layout_height="match_parent"
android:orientation="vertical"
app:layout_scrollFlags="scroll|enterAlways"
android:layout_margin="10dp">
android:layout_marginHorizontal="10dp">
<HorizontalScrollView
android:layout_width="wrap_content"
android:scrollbars="none"

Loading…
Cancel
Save