MixinNetwork/android-app

Offline image rendering in POST markdown

Closed this issue · 3 comments

  1. Send a POST with image in it,
  2. after the image loaded,
  3. enable phone Airplane mode,
  4. the image can't be rendered offline

As all the user avatars, image messages can be loaded offline, how couldn't the POST image be loaded offline?

Markdown also setup Glide load image, but not work, it uses AsyncDrawableLoaderImpl load image from the log, so it can not be offline.

I found out that the reason is these two lines of code.
In order to support SVG display, we added ImagesPlugin, GlideImagesPlugin was overwritten.
I will fix this bug.