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

Full size image view problem in JellyBean #35

Closed
pchretien opened this issue Aug 11, 2012 · 1 comment
Closed

Full size image view problem in JellyBean #35

pchretien opened this issue Aug 11, 2012 · 1 comment
Assignees
Labels

Comments

@pchretien
Copy link
Owner

The WebView does not display the local file stored in the cache ... In fact, the cache is not always activated so we must validate that the picture is there before to use it in the webview.

@ghost ghost assigned pchretien Aug 11, 2012
@pchretien
Copy link
Owner Author

I have made a patch in the APODPictureActivity:

int version = Integer.parseInt(android.os.Build.VERSION.SDK);

// Build the full path of the image to display
String src = app.getDataProvider().getBitmapPathFromCache(apodData.getDate());
if(src != null && version < 16)
src = "file:/" + src;
else
src = apodData.getSrc();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant