Skip to content

Commit

Permalink
6.3.1 commit
Browse files Browse the repository at this point in the history
  • Loading branch information
XilinJia committed Aug 2, 2024
1 parent fd9040f commit 81d4374
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 24 deletions.
5 changes: 1 addition & 4 deletions .directory
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
[Dolphin]
Timestamp=2024,2,5,7,26,48.63
Timestamp=2024,8,2,9,3,22.216
Version=4
ViewMode=1

[Settings]
HiddenFilesShown=true
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ android {
testApplicationId "ac.mdiq.podcini.tests"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

versionCode 3020224
versionName "6.3.0"
versionCode 3020225
versionName "6.3.1"

applicationId "ac.mdiq.podcini.R"
def commit = ""
Expand Down
16 changes: 8 additions & 8 deletions app/src/main/kotlin/ac/mdiq/podcini/storage/database/Feeds.kt
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,8 @@ object Feeds {
addNewFeedsSync(context, newFeed)
// Update with default values that are set in database
resultFeed = searchFeedByIdentifyingValueOrID(newFeed)
} else persistFeedsSync(savedFeed)
// updateFeedMap()
} else upsertBlk(savedFeed) {}

if (removeUnlistedItems) runBlocking { deleteEpisodes(context, unlistedItems).join() }
} catch (e: InterruptedException) {
e.printStackTrace()
Expand Down Expand Up @@ -377,12 +377,12 @@ object Feeds {
backupManager.dataChanged()
}

private fun persistFeedsSync(vararg feeds: Feed) {
Logd(TAG, "persistFeedsSync called")
for (feed in feeds) {
upsertBlk(feed) {}
}
}
// private fun persistFeedsSync(vararg feeds: Feed) {
// Logd(TAG, "persistFeedsSync called")
// for (feed in feeds) {
// upsertBlk(feed) {}
// }
// }

fun persistFeedPreferences(feed: Feed) : Job {
Logd(TAG, "persistFeedPreferences called")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,12 @@ class PlayActionButton(item: Episode) : EpisodeActionButton(item) {
Log.i(TAG, "The feedmanager was notified about a missing episode. It will update its database now.")
val episode = media.episodeOrFetch()
if (episode != null) {
episode.media = media
episode.media?.downloaded = false
episode.media?.fileUrl = null
upsertBlk(episode) {}
EventFlow.postEvent(FlowEvent.EpisodeMediaEvent.removed(episode))
val episode_ = upsertBlk(episode) {
it.media = media
it.media?.downloaded = false
it.media?.fileUrl = null
}
EventFlow.postEvent(FlowEvent.EpisodeMediaEvent.removed(episode_))
}
EventFlow.postEvent(FlowEvent.MessageEvent(context.getString(R.string.error_file_not_found)))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ class BugReportActivity : AppCompatActivity() {
val crashFile = CrashReportWriter.file
if (crashFile.exists()) stacktrace = IOUtils.toString(FileInputStream(crashFile), Charset.forName("UTF-8"))
else Logd(TAG, stacktrace)

} catch (e: IOException) {
e.printStackTrace()
}
Expand Down Expand Up @@ -112,8 +111,7 @@ class BugReportActivity : AppCompatActivity() {
} catch (e: Exception) {
e.printStackTrace()
val strResId = R.string.log_file_share_exception
Snackbar.make(binding.root, strResId, Snackbar.LENGTH_LONG)
.show()
Snackbar.make(binding.root, strResId, Snackbar.LENGTH_LONG).show()
}
} catch (e: IOException) {
e.printStackTrace()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ import java.util.*
spinnerAdaptor = ArrayAdapter(requireContext(), android.R.layout.simple_spinner_item, spinnerTexts)
spinnerAdaptor.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item)
queueSpinner.adapter = spinnerAdaptor
queueSpinner.setSelection(spinnerAdaptor.getPosition(curQueue.name))
queueSpinner.setSelection(queueNames.indexOf(curQueue.name))
queueSpinner.onItemSelectedListener = object : AdapterView.OnItemSelectedListener {
override fun onItemSelected(parent: AdapterView<*>?, view: View?, position: Int, id: Long) {
curQueue = upsertBlk(queues[position]) { it.updated }
curQueue = upsertBlk(queues[position]) { it.update() }
toolbar.menu?.findItem(R.id.rename_queue)?.setVisible(curQueue.name != "Default")
loadCurQueue(true)
}
Expand Down
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 6.3.1

* fixed crash when playing episode with missing media file
* fixed Queue view not opening the current queue

# 6.3.0

* improved handling of playing next in queue when some items have been removed from the queue
Expand Down
5 changes: 5 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/3020225.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

Version 6.3.1 brings several changes:

* fixed crash when playing episode with missing media file
* fixed Queue view not opening the current queue

0 comments on commit 81d4374

Please sign in to comment.