Commit f4db242
Reader: Preserve editorial date on post detail refresh (#22783)
* Reader: Preserve editorial date when detail endpoint refreshes post
When the Reader detail screen fetches a post, the response lacks the
editorial section, causing the raw date field to overwrite the correct
Freshly Pressed displayed_on date. Preserve the existing date_published
from the DB before saving.
Co-Authored-By: Claude Opus 4.6 <[email protected]>
* Reader: Remove redundant isEmpty check on preserved date
getDatePublished() already returns a non-null string via
StringUtils.notNullStr(), making the TextUtils.isEmpty guard
unnecessary.
Co-Authored-By: Claude Opus 4.6 <[email protected]>
---------
Co-authored-by: Claude Opus 4.6 <[email protected]>1 parent cf81ab8 commit f4db242
File tree
1 file changed
+13
-0
lines changed- WordPress/src/main/java/org/wordpress/android/ui/reader/actions
1 file changed
+13
-0
lines changedLines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
296 | 309 | | |
297 | 310 | | |
298 | 311 | | |
| |||
0 commit comments