Skip to content

Commit 4d053e8

Browse files
authored
Merge pull request #216 from Automattic/fix/folder-sync-issue
Fix/folder sync issue
2 parents e845192 + 8aa743f commit 4d053e8

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

RELEASE-NOTES.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Release notes
22

3+
### 7.20.3
4+
5+
* Bug Fixes:
6+
* Fixes folder mapping at the time of folders full sync.
7+
([#214](https://github.com/Automattic/pocket-casts-android/pull/214)).
8+
39
### 7.20.2
410

511
* Bug Fixes:

dependencies.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ project.ext {
2626
applicationId = 'au.com.shiftyjelly.pocketcasts'
2727

2828
versionCode = getVersionCode()
29-
versionName = '7.20.2' + getVersionNameSuffix()
29+
versionName = '7.20.3' + getVersionNameSuffix()
3030

3131
// Android
3232
minSdkVersion = 23

modules/services/servers/src/main/java/au/com/shiftyjelly/pocketcasts/servers/sync/FolderResponse.kt

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ data class FolderResponse(
1616
@field:Json(name = "dateAdded") val dateAdded: Date?
1717
) {
1818
fun toFolder(): Folder? {
19-
if (folderUuid == null || name == null || color == null || sortPosition == null || podcastsSortType == null || dateAdded == null) {
19+
if (folderUuid == null || name == null || dateAdded == null) {
2020
return null
2121
}
2222
return Folder(
2323
uuid = folderUuid,
2424
name = name,
25-
color = color,
25+
color = color ?: 0,
2626
addedDate = dateAdded,
27-
sortPosition = sortPosition,
28-
podcastsSortType = podcastsSortType,
27+
sortPosition = sortPosition ?: 0,
28+
podcastsSortType = PodcastsSortType.fromServerId(podcastsSortType?.serverId),
2929
deleted = false,
3030
syncModified = 0
3131
)

0 commit comments

Comments
 (0)