-
Notifications
You must be signed in to change notification settings - Fork 200
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
Only very first image load works (Android) #38
Comments
Getting this stacktrace:
|
Following http://stackoverflow.com/questions/26938310/picasso-library-out-of-memory and adding ".fit()" (around line 140 PhotoActivity.java) to Picasso loading call fixed the issue: Before
After
|
Yes, the memory issue is because of the size of the image. For some reason I validated that .fit is missing on the current version. I will make the change. Thanks for your help. |
You are welcome. Very nice plugin! |
Thanks. Please try the version 1.1.8 and let me know if you find anything else. |
The "fit()" patch also solves #39. |
I'm using this plugin in a ionic project. I'm calling a function on ng-click event triggered on a element. The function calls "PhotoViewer.show(url);":
The first time I click the link the image is loaded successfully. The second and subsequent times I got a toast that says "Error loading image.". After that, any other link I click I got the same error message, so I need to restart my app.
I tried change the event from "ng-click" to "on-touch" and add a random GET parameter to my URL to avoid any cache. No success.
I also alerted the url that is sended to "openImage()" function and it is correct.
I'm running:
Cordova CLI 6.3.1
Ionic: 1.3
Ionic cli: 2.1.0
Android 4.4.2
The text was updated successfully, but these errors were encountered: