6.6.5 commit

This commit is contained in:
Xilin Jia 2024-09-16 09:37:09 +01:00
parent 3b8a97496f
commit 18c068cb4c
4 changed files with 12 additions and 6 deletions

View File

@ -31,8 +31,8 @@ android {
testApplicationId "ac.mdiq.podcini.tests" testApplicationId "ac.mdiq.podcini.tests"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
versionCode 3020249 versionCode 3020250
versionName "6.6.4" versionName "6.6.5"
applicationId "ac.mdiq.podcini.R" applicationId "ac.mdiq.podcini.R"
def commit = "" def commit = ""

View File

@ -112,7 +112,7 @@ class SubscriptionsFragment : Fragment(), Toolbar.OnMenuItemClickListener, Selec
private lateinit var queuesAdapter: ArrayAdapter<String> private lateinit var queuesAdapter: ArrayAdapter<String>
private lateinit var tagsAdapter: ArrayAdapter<String> private lateinit var tagsAdapter: ArrayAdapter<String>
private var tagFilterIndex = 1 private var tagFilterIndex = 1
private var queueFilterIndex = 1 private var queueFilterIndex = 0
private var infoTextFiltered = "" private var infoTextFiltered = ""
private var infoTextUpdate = "" private var infoTextUpdate = ""
@ -164,17 +164,16 @@ class SubscriptionsFragment : Fragment(), Toolbar.OnMenuItemClickListener, Selec
initAdapter() initAdapter()
setupEmptyView() setupEmptyView()
resetTags() resetTags()
val queues = realm.query(PlayQueue::class).find() val queues = realm.query(PlayQueue::class).find()
queueIds.addAll(queues.map { it.id }) queueIds.addAll(queues.map { it.id })
val spinnerTexts: MutableList<String> = mutableListOf("All", "None") val spinnerTexts: MutableList<String> = mutableListOf("Any queue", "No queue")
spinnerTexts.addAll(queues.map { it.name }) spinnerTexts.addAll(queues.map { it.name })
queuesAdapter = ArrayAdapter(requireContext(), android.R.layout.simple_spinner_item, spinnerTexts) queuesAdapter = ArrayAdapter(requireContext(), android.R.layout.simple_spinner_item, spinnerTexts)
queuesAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item) queuesAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item)
binding.queuesSpinner.setAdapter(queuesAdapter) binding.queuesSpinner.setAdapter(queuesAdapter)
binding.queuesSpinner.setSelection(queuesAdapter.getPosition("All")) binding.queuesSpinner.setSelection(queuesAdapter.getPosition("Any queue"))
binding.queuesSpinner.onItemSelectedListener = object : AdapterView.OnItemSelectedListener { binding.queuesSpinner.onItemSelectedListener = object : AdapterView.OnItemSelectedListener {
override fun onItemSelected(parent: AdapterView<*>?, view: View?, position: Int, id: Long) { override fun onItemSelected(parent: AdapterView<*>?, view: View?, position: Int, id: Long) {
queueFilterIndex = position queueFilterIndex = position

View File

@ -1,3 +1,7 @@
# 6.6.5
* fixed the issue of subscriptions not filtered correctly.
# 6.6.4 # 6.6.4
* added ability to receive music or playlist shared from YT Music * added ability to receive music or playlist shared from YT Music

View File

@ -0,0 +1,3 @@
Version 6.6.5:
* fixed the issue of subscriptions not filtered correctly.