Wordpress-android: Infinite media upload notification

Created on 27 Sep 2019  路  2Comments  路  Source: wordpress-mobile/WordPress-Android

There are two probably related issues:

  • Completely unrelated "Error while trying to save post before preview" error is sometimes shown when I upload an image in the editor. The error shouldn't be shown unless I'm trying to preview the post and it fails.
  • If I try to upload another media after the error mentioned above was shown, the media upload notification gets stuck on 100% and never disappears

Steps to reproduce the behavior

I tested it on a self-hosted site, I'm not sure if it's related.

  1. Add an image into a post
  2. Wait until the upload completes
  3. Add an image into a different post
  4. Notice that sometimes un unrelated error is shown
  5. Add another image
  6. Notice there is a dangling media upload notification

danling-notification

Tested on [device], Android [version], WPAndroid [version]

Emulator API 29

Previews [Pri] Medium [Type] Bug

All 2 comments

"Error while trying to save post before preview"

@malinajirka I think I saw this once and mentioned you and Maxime about it but it was difficult to reproduce. My only guess is it has something to do with onPostUploaded. Possibly an invalid state is being set somewhere.

https://github.com/wordpress-mobile/WordPress-Android/blob/133af1cb8e71ee01b9f3e46ffa478b09d02f5be2/WordPress/src/main/java/org/wordpress/android/ui/posts/EditPostActivity.java#L4017-L4021

I wasn't able to reproduce this issue - I think this change might have fixed it.

Was this page helpful?
0 / 5 - 0 ratings