mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Moved variables inside if block
This commit is contained in:
parent
5d4768e1ee
commit
9cd0f8fb5a
1 changed files with 6 additions and 3 deletions
|
|
@ -198,17 +198,20 @@ public class ShareActivity
|
|||
Log.d(TAG, "Calling GPSExtractor");
|
||||
GPSExtractor imageObj = new GPSExtractor(filePath);
|
||||
String decimalCoords = imageObj.getCoords();
|
||||
double decLongitude = imageObj.getDecLongitude();
|
||||
double decLatitude = imageObj.getDecLatitude();
|
||||
|
||||
|
||||
if (decimalCoords != null) {
|
||||
double decLongitude = imageObj.getDecLongitude();
|
||||
double decLatitude = imageObj.getDecLatitude();
|
||||
|
||||
Log.d(TAG, "Decimal coords of image: " + decimalCoords);
|
||||
app.cacheData.setQtPoint(decLongitude, decLatitude);
|
||||
|
||||
MwVolleyApi apiCall = new MwVolleyApi(this);
|
||||
|
||||
List displayCatList = app.cacheData.findCategory();
|
||||
boolean catListEmpty = displayCatList.isEmpty();
|
||||
|
||||
|
||||
//if no categories found in cache, call MW API to match image coords with nearby Commons categories
|
||||
if (catListEmpty) {
|
||||
cacheFound = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue