fix build
This commit is contained in:
parent
fa422d474c
commit
571dc74222
1 changed files with 3 additions and 2 deletions
|
@ -203,10 +203,11 @@ public class FavouritesActivity extends ExpandableListActivity {
|
|||
// double d1 = MapUtils.getDistance(mapLocation, object1.getLatitude(), object1.getLongitude());
|
||||
// double d2 = MapUtils.getDistance(mapLocation, object2.getLatitude(), object2.getLongitude());
|
||||
// if(d1 == d2){
|
||||
if(object1.getName() == object2.getName()){
|
||||
int result = object1.getName().compareTo(object2.getName());
|
||||
if(result == 0){
|
||||
return 0;
|
||||
// } else if(d1 > d2){
|
||||
} else if(object1.getName() > object2.getName()){
|
||||
} else if(result < 0){
|
||||
return 1;
|
||||
}
|
||||
return -1;
|
||||
|
|
Loading…
Reference in a new issue