Conversation
Used to return a MediaGallery, now just returns the selected items with a different result code.
Check for deletion involves attempting to GET media and checking for a 404 error.
Uploads local media then creates gallery from selected media IDs.
Local images would not update until web images we downloaded. Need to fix thread priority to follow LIFO protocol.
The MediaPickerActivity remains active.
Users now alerted of problems with the provided file via Toasts.
IMHO, that's really a weird user experience. When on a slow network, I have the impression I don't have any images in my media library. How the media library is handling this 404 issue? Another comment, the more I test it, the more I think we shouldn't mix local and media library pictures. The main reason: I have a huge list of local pics and searching for a media library items make me scroll a loooong way to see them. Second argument: even with the "W" logo, it's not super explicit. I'm not against it, but I would like to hear from other devs/designers/users about this. |
MediaSourceWPImages queries each of the images and verifies a 200 return code. After all the checks are complete it updates the adapter with all the verified images via notifyDataSetChanged.
I've noticed this as well. I have ~100 images to scroll through when I want to get to my library images, it's a hassle. I'm gonna switch it to four tabs for now; Device Images, Device Video, Blog Images, Blog Video. |
|
Before the merge:
Next iteration:
|
Fixes problem where adding multiple images wouldn't be saved to offline local post drafts.
|
Here's a video of adding two local and two blog images to a new post then publishing it. Local images still need to be queued for upload then the last bullet point will be satisfied. |
…r-maxme Issue/1628 media picker maxme
|
Tested again, and looks ok! Encountered a crash, but I'm pretty sure it wasn't introduced in this pr: |
|
Filled this new issue for empty views: #2414 |
|
|
Woo, time to get some eyes on this branch! I've been fiddling with it and have some notes provided below for things to work on. I'm not too sure about the look and feel of the icons, would definitely like some design feedback.
Added:
In-progress