Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: No preview of photos #7

Open
mgursch opened this issue Nov 14, 2019 · 11 comments
Open

BUG: No preview of photos #7

mgursch opened this issue Nov 14, 2019 · 11 comments
Labels
bug Something isn't working

Comments

@mgursch
Copy link

mgursch commented Nov 14, 2019

Hello,

I integrated your library into one of my apps but Its showing some weird behavior. First I open the PhotoPickerFragment - everything works. I choose 1-2 pictures. Second the user opens the PhotoPickerFragment again, but image previews are not visible. If the user navigates to gallery and back, previews are back.

I attached a link to a video for better understanding.

https://www.dropbox.com/s/0aquo1lqvs4ybci/photopicker-empty.mp4?dl=0

@APetjko
Copy link
Contributor

APetjko commented Nov 14, 2019

Which library do you use for ImageLoader?

@APetjko APetjko added the bug Something isn't working label Nov 14, 2019
@mgursch
Copy link
Author

mgursch commented Nov 14, 2019

Glide with your demo implementation

@JasonPosterUpd
Copy link

the same

@mgursch
Copy link
Author

mgursch commented Nov 18, 2019

@APetjko
How can I help to get a solution for that?

@APetjko
Copy link
Contributor

APetjko commented Nov 19, 2019

As I can see, you run app on Android Q. Tried to reproduce on emulator with this version, but succeed only partially.

Images was not loaded at all (but it is know issue on Glide repository - bumptech/glide#3896).
You can try suggested in this issue solution, but i'm not sure that it will help you.

Can't reproduce your case.

@mgursch maybe you have some additional configurations for Glide? (extended AppGlideModule, Caching, etc.)

@mgursch
Copy link
Author

mgursch commented Nov 19, 2019

I tried to switch to Picasso for ImageLoaderDelegate and it works. Maybe there is some missconfiguration or Glide issue

@APetjko
Copy link
Contributor

APetjko commented Nov 19, 2019

Do you experience this issue on pre-Q versions?

@mgursch
Copy link
Author

mgursch commented Nov 20, 2019

Sorry - havent checked it on other phones.

@ridsync
Copy link

ridsync commented Dec 7, 2020

There is a problem with the preview of the photo.
this issue is discovered in sample library app
with Samsung SM-G975-N Android 10 device

image

@timtsj
Copy link

timtsj commented Dec 16, 2020

@ridsync try add this to file path of you file provider

<cache-path
    name="camera"
    path="camera/" />
<external-path
    name="external_files"
    path="." />
<external-path
    name="cache-path"
    path="." />
<cache-path
    name="cache-path"
    path="." />
<external-path
    name="external"
    path="." />
<external-files-path
    name="external_files"
    path="." />
<cache-path
    name="cache"
    path="." />
<external-cache-path
    name="external_cache"
    path="." />
<files-path
    name="files"
    path="." />

@starsep
Copy link

starsep commented Mar 4, 2021

Adding android:requestLegacyExternalStorage="true" to application tag in AndroidManifest.xml worked for me.
More info on temporarily opting-out of scoped storage:
https://developer.android.com/training/data-storage/use-cases#opt-out-scoped-storage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants