4.5.1 commit
This commit is contained in:
parent
20d0038eee
commit
1c97bc3334
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
@ -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,
|
||||
|
|
|
@ -199,3 +199,7 @@
|
|||
* 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
|
||||
|
||||
## 4.5.1
|
||||
|
||||
* fixed bug in subscription sorting
|
|
@ -0,0 +1,4 @@
|
|||
|
||||
Version 4.5.1 brings several changes:
|
||||
|
||||
* fixed bug in subscription sorting
|
Loading…
Reference in New Issue