diff --git a/app/src/main/java/com/deniscerri/ytdlnis/ui/downloads/CancelledDownloadsFragment.kt b/app/src/main/java/com/deniscerri/ytdlnis/ui/downloads/CancelledDownloadsFragment.kt index 24e1e6ff..d61f2220 100644 --- a/app/src/main/java/com/deniscerri/ytdlnis/ui/downloads/CancelledDownloadsFragment.kt +++ b/app/src/main/java/com/deniscerri/ytdlnis/ui/downloads/CancelledDownloadsFragment.kt @@ -121,6 +121,7 @@ class CancelledDownloadsFragment : Fragment(), GenericDownloadAdapter.OnItemClic val time = bottomSheet.findViewById(R.id.time) val formatNote = bottomSheet.findViewById(R.id.format_note) + val container = bottomSheet.findViewById(R.id.container_chip) val codec = bottomSheet.findViewById(R.id.codec) val fileSize = bottomSheet.findViewById(R.id.file_size) @@ -130,6 +131,9 @@ class CancelledDownloadsFragment : Fragment(), GenericDownloadAdapter.OnItemClic View.GONE else formatNote!!.text = item.format.format_note + if (item.format.container != "") container!!.text = item.format.container.uppercase() + else container!!.visibility = View.GONE + val codecText = if (item.format.encoding != "") { item.format.encoding.uppercase() diff --git a/app/src/main/java/com/deniscerri/ytdlnis/ui/downloads/ErroredDownloadsFragment.kt b/app/src/main/java/com/deniscerri/ytdlnis/ui/downloads/ErroredDownloadsFragment.kt index ef9e7c88..1ff1482b 100644 --- a/app/src/main/java/com/deniscerri/ytdlnis/ui/downloads/ErroredDownloadsFragment.kt +++ b/app/src/main/java/com/deniscerri/ytdlnis/ui/downloads/ErroredDownloadsFragment.kt @@ -121,6 +121,7 @@ class ErroredDownloadsFragment() : Fragment(), GenericDownloadAdapter.OnItemClic val time = bottomSheet.findViewById(R.id.time) val formatNote = bottomSheet.findViewById(R.id.format_note) + val container = bottomSheet.findViewById(R.id.container_chip) val codec = bottomSheet.findViewById(R.id.codec) val fileSize = bottomSheet.findViewById(R.id.file_size) @@ -130,6 +131,9 @@ class ErroredDownloadsFragment() : Fragment(), GenericDownloadAdapter.OnItemClic View.GONE else formatNote!!.text = item.format.format_note + if (item.format.container != "") container!!.text = item.format.container.uppercase() + else container!!.visibility = View.GONE + val codecText = if (item.format.encoding != "") { item.format.encoding.uppercase() diff --git a/app/src/main/java/com/deniscerri/ytdlnis/ui/downloads/HistoryFragment.kt b/app/src/main/java/com/deniscerri/ytdlnis/ui/downloads/HistoryFragment.kt index fc1aaec8..1d8a0d80 100644 --- a/app/src/main/java/com/deniscerri/ytdlnis/ui/downloads/HistoryFragment.kt +++ b/app/src/main/java/com/deniscerri/ytdlnis/ui/downloads/HistoryFragment.kt @@ -420,6 +420,7 @@ class HistoryFragment : Fragment(), HistoryAdapter.OnItemClickListener{ val time = bottomSheet!!.findViewById(R.id.time) val formatNote = bottomSheet!!.findViewById(R.id.format_note) + val container = bottomSheet!!.findViewById(R.id.container_chip) val codec = bottomSheet!!.findViewById(R.id.codec) val fileSize = bottomSheet!!.findViewById(R.id.file_size) @@ -431,6 +432,9 @@ class HistoryFragment : Fragment(), HistoryAdapter.OnItemClickListener{ if (item.format.format_note == "?" || item.format.format_note == "") formatNote!!.visibility = GONE else formatNote!!.text = item.format.format_note + if (item.format.container != "") container!!.text = item.format.container.uppercase() + else container!!.visibility = View.GONE + val codecText = if (item.format.encoding != "") { item.format.encoding.uppercase() diff --git a/app/src/main/java/com/deniscerri/ytdlnis/ui/downloads/QueuedDownloadsFragment.kt b/app/src/main/java/com/deniscerri/ytdlnis/ui/downloads/QueuedDownloadsFragment.kt index 627613c5..79d59db7 100644 --- a/app/src/main/java/com/deniscerri/ytdlnis/ui/downloads/QueuedDownloadsFragment.kt +++ b/app/src/main/java/com/deniscerri/ytdlnis/ui/downloads/QueuedDownloadsFragment.kt @@ -129,6 +129,7 @@ class QueuedDownloadsFragment : Fragment(), GenericDownloadAdapter.OnItemClickLi val time = bottomSheet.findViewById(R.id.time) val formatNote = bottomSheet.findViewById(R.id.format_note) + val container = bottomSheet.findViewById(R.id.container_chip) val codec = bottomSheet.findViewById(R.id.codec) val fileSize = bottomSheet.findViewById(R.id.file_size) @@ -156,6 +157,9 @@ class QueuedDownloadsFragment : Fragment(), GenericDownloadAdapter.OnItemClickLi View.GONE else formatNote!!.text = item.format.format_note + if (item.format.container != "") container!!.text = item.format.container.uppercase() + else container!!.visibility = View.GONE + val codecText = if (item.format.encoding != "") { item.format.encoding.uppercase() diff --git a/app/src/main/res/layout/history_item_details_bottom_sheet.xml b/app/src/main/res/layout/history_item_details_bottom_sheet.xml index 423594de..44e0f51f 100644 --- a/app/src/main/res/layout/history_item_details_bottom_sheet.xml +++ b/app/src/main/res/layout/history_item_details_bottom_sheet.xml @@ -112,6 +112,18 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent"/> + +