final touches

This commit is contained in:
deniscerri 2025-02-16 19:28:17 +01:00
parent 8b2a9322e1
commit 54c07f88d6
No known key found for this signature in database
GPG key ID: 95C43D517D830350
3 changed files with 21 additions and 2 deletions

View file

@ -143,6 +143,20 @@ jobs:
name: ytdlnis-autogenerated-x86_64-release
path: ${{ env.APK_PATH }}
# Noted For Output [main_project_module]/build/outputs/apk/debug/
- name: Upload APK Debug
uses: actions/upload-artifact@v4
with:
name: YTDLnis APK debug generated
path: ${{ env.main_project_module }}/build/outputs/apk/debug/
# Noted For Output [main_project_module]/build/outputs/apk/release/
- name: Upload APK Release
uses: actions/upload-artifact@v4
with:
name: YTDLnis APK release generated
path: ${{ env.main_project_module }}/build/outputs/apk/release/
# Send Message To Telegram
- name: send telegram message on push or pull
continue-on-error: true

View file

@ -62,11 +62,15 @@ class YoutubePlayerClientAdapter(onItemClickListener: OnItemClickListener, activ
title.text = item.playerClient
val content = card.findViewById<TextView>(R.id.content)
content.isVisible = item.poTokens.isNotEmpty()
if (item.poTokens.isNotEmpty()) {
val text = item.poTokens.joinToString("\n") { "PO Token (${it.context}): ${it.token}" }
content.text = text
}else {
content.isVisible = false
}
if (item.urlRegex.isNotEmpty()) {
val text = content.text.toString() + "\nURL Regex: " + item.urlRegex.joinToString(", ")
content.text = text
}
val switch = card.findViewById<MaterialSwitch>(R.id.materialSwitch)

View file

@ -65,6 +65,7 @@
android:id="@+id/materialSwitch"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />