mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Minor List refactor
This commit is contained in:
parent
b5ee6e3c5e
commit
49d890a0d7
1 changed files with 3 additions and 3 deletions
|
|
@ -38,14 +38,14 @@ public class CacheController {
|
||||||
quadTree.set(x, y, pointCatList);
|
quadTree.set(x, y, pointCatList);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ArrayList findCategory() {
|
public List findCategory() {
|
||||||
//Convert decLatitude and decLongitude to a coordinate offset range
|
//Convert decLatitude and decLongitude to a coordinate offset range
|
||||||
convertCoordRange();
|
convertCoordRange();
|
||||||
pointsFound = quadTree.searchWithin(xMinus, yMinus, xPlus, yPlus);
|
pointsFound = quadTree.searchWithin(xMinus, yMinus, xPlus, yPlus);
|
||||||
ArrayList displayCatList = new ArrayList();
|
List displayCatList = new ArrayList();
|
||||||
Log.d(TAG, "Points found in quadtree: " + pointsFound);
|
Log.d(TAG, "Points found in quadtree: " + pointsFound);
|
||||||
|
|
||||||
ArrayList<String> flatCatList = new ArrayList<String>();
|
List<String> flatCatList = new ArrayList<String>();
|
||||||
|
|
||||||
if (pointsFound.length != 0) {
|
if (pointsFound.length != 0) {
|
||||||
Log.d(TAG, "Entering for loop");
|
Log.d(TAG, "Entering for loop");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue