mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Handle caching
This commit is contained in:
parent
ab41cd67a8
commit
e05f78ce85
1 changed files with 7 additions and 4 deletions
|
|
@ -205,11 +205,14 @@ public class ShareActivity
|
||||||
|
|
||||||
|
|
||||||
if (decimalCoords != null) {
|
if (decimalCoords != null) {
|
||||||
double decLongitude = imageObj.getDecLongitude();
|
|
||||||
double decLatitude = imageObj.getDecLatitude();
|
|
||||||
|
|
||||||
Log.d(TAG, "Decimal coords of image: " + decimalCoords);
|
Log.d(TAG, "Decimal coords of image: " + decimalCoords);
|
||||||
app.cacheData.setQtPoint(decLongitude, decLatitude);
|
|
||||||
|
//Only set cache for this point if image has coords
|
||||||
|
if (imageObj.imageCoordsExists) {
|
||||||
|
double decLongitude = imageObj.getDecLongitude();
|
||||||
|
double decLatitude = imageObj.getDecLatitude();
|
||||||
|
app.cacheData.setQtPoint(decLongitude, decLatitude);
|
||||||
|
}
|
||||||
|
|
||||||
MwVolleyApi apiCall = new MwVolleyApi(this);
|
MwVolleyApi apiCall = new MwVolleyApi(this);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue