Skip to content

Commit

Permalink
4.5.1 commit
Browse files Browse the repository at this point in the history
  • Loading branch information
XilinJia committed Apr 2, 2024
1 parent 20d0038 commit 1c97bc3
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 7 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ android {
// Version code schema (not used):
// "1.2.3-beta4" -> 1020304
// "1.2.3" -> 1020395
versionCode 3020120
versionName "4.5.0"
versionCode 3020121
versionName "4.5.1"

def commit = ""
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,12 @@ object UserPreferences {
const val NOTIFICATION_BUTTON_NEXT_CHAPTER: Int = 3
const val NOTIFICATION_BUTTON_PLAYBACK_SPEED: Int = 4
const val EPISODE_CACHE_SIZE_UNLIMITED: Int = -1
// should match those defined in arrays
const val FEED_ORDER_COUNTER: Int = 0
const val FEED_ORDER_ALPHABETICAL: Int = 1
const val FEED_ORDER_MOST_PLAYED: Int = 3
const val FEED_ORDER_LAST_UPDATED: Int = 4
const val FEED_ORDER_LAST_UNREAD_UPDATED: Int = 5
const val FEED_ORDER_LAST_UPDATED: Int = 2
const val FEED_ORDER_LAST_UNREAD_UPDATED: Int = 3
const val FEED_ORDER_MOST_PLAYED: Int = 4
const val DEFAULT_PAGE_REMEMBER: String = "remember"

private lateinit var context: Context
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/java/ac/mdiq/podcini/storage/DBReader.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import ac.mdiq.podcini.preferences.UserPreferences
import ac.mdiq.podcini.preferences.UserPreferences.feedCounterSetting
import ac.mdiq.podcini.preferences.UserPreferences.feedOrder
import ac.mdiq.podcini.storage.model.feed.FeedPreferences.Companion.TAG_ROOT
import java.text.SimpleDateFormat
import java.util.*
import kotlin.math.min

Expand Down Expand Up @@ -934,6 +935,7 @@ object DBReader {
comparator = Comparator { lhs: Feed, rhs: Feed ->
val dateLhs = if (recentPubDates.containsKey(lhs.id)) recentPubDates[lhs.id]!! else 0
val dateRhs = if (recentPubDates.containsKey(rhs.id)) recentPubDates[rhs.id]!! else 0
// Log.d(TAG, "FEED_ORDER_LAST_UPDATED ${lhs.title} ${SimpleDateFormat("yyyy-MM-dd", Locale.getDefault()).format(Date(dateLhs))}")
dateRhs.compareTo(dateLhs)
}
}
Expand All @@ -956,7 +958,6 @@ object DBReader {
for (feed in feeds) {
val counter = if (feedCounters.containsKey(feed.id)) feedCounters[feed.id]!! else 0
val drawerItem = FeedDrawerItem(feed, feed.id, counter)

items.add(drawerItem)
}
val result = NavDrawerData(items, queueSize, numNewItems, numDownloadedItems,
Expand Down
6 changes: 5 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,4 +198,8 @@
* single tap not during play has no effect
* the Play button
* by default, it behaves the same as usual
* if the user customize "Fallback speed" to a value greater than 0.1, long-press the button during play enters the fallback mode and plays at the set fallback speed, single tap exits the fallback mode
* if the user customize "Fallback speed" to a value greater than 0.1, long-press the button during play enters the fallback mode and plays at the set fallback speed, single tap exits the fallback mode

## 4.5.1

* fixed bug in subscription sorting
4 changes: 4 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/3020121.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

Version 4.5.1 brings several changes:

* fixed bug in subscription sorting

0 comments on commit 1c97bc3

Please sign in to comment.