-
Notifications
You must be signed in to change notification settings - Fork 32
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
Image on fullscreen never changes (Android) #13
Comments
Hello @slaptot any news? |
@slaptot i have been watching the code and i think i know why is this issue happening, is because the downloaded isn't deleted before opening another file or after going out the preview image . i will try doing a work around of this issue and send you any updates if i can fix it. |
Hello @slaptot here is a fix i do: add this code just after line 108: and add this just after line 158: this is actually working for me, i have tested only on android 4.2.2 |
Hi @wilguevara , |
I had the same problem opening a base64 image string. The file that was opening in fullscreen, was written in storage under the name of output.jpg. Then I took a look at the java code and noticed that all the data of the file I was trying to open was just appended to the already existing "output.jpg" file. That's because of this line of code: FileOutputStream os = new FileOutputStream(filePath, true); (on line 155) You can change true to false to overwrite the "output.jpg" file. |
@L-VE +1 thanks! i'll try this. |
#13 Fix solution https://github.com/L-VE: I had the same problem opening a base64 image string. The file that was opening in fullscreen, was written in storage under the name of output.jpg. Then I took a look at the java code and noticed that all the data of the file I was trying to open was just appended to the already existing "output.jpg" file. That's because of this line of code: #13;
@L-VE +1 thanks! Merged |
Hi @slaptot i have a issue on android 4.2.2, when i try to open a new image in the fullscreen viewer, it is always showing the first image i have ever opened for the first time of the life of my app.
Does you need more details about the problems for helping me?
King regards!
PD: on iOS everything works really fine!
The text was updated successfully, but these errors were encountered: