final touches
This commit is contained in:
parent
8b2a9322e1
commit
54c07f88d6
3 changed files with 21 additions and 2 deletions
14
.github/workflows/android.yml
vendored
14
.github/workflows/android.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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" />
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue