Expected behavior
When an update is being made on a post and an error occurs the ProgressState should be updated to reflect this.
Actual behavior
This should be invoked whether an error has took place or not since it will update the status.
|
invalidateUploadStatus.invoke( |
At the moment, the invocation only occurs if the event doesn't have an error.
Similar behavior in PostListEventListener
|
invalidateUploadStatus.invoke( |
Steps to reproduce the behavior
- Update/Upload a post.
- Create some form of error by manipulating the environment eg. disabling the internet during an upload.
Tested on Google Pixel 3a, Android 10, WPAndroid #11191
Expected behavior
When an update is being made on a post and an error occurs the
ProgressStateshould be updated to reflect this.Actual behavior
This should be invoked whether an error has took place or not since it will update the status.
WordPress-Android/WordPress/src/main/java/org/wordpress/android/viewmodel/pages/PageListEventListener.kt
Line 102 in 1adbfd7
At the moment, the invocation only occurs if the event doesn't have an error.
Similar behavior in
PostListEventListenerWordPress-Android/WordPress/src/main/java/org/wordpress/android/ui/posts/PostListEventListener.kt
Line 125 in be1eff3
Steps to reproduce the behavior
Tested on Google Pixel 3a, Android 10, WPAndroid #11191