mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Add TODO
This commit is contained in:
parent
209cb53483
commit
93ec7bcb3e
1 changed files with 2 additions and 3 deletions
|
|
@ -374,9 +374,7 @@ public class NearbyActivity extends NavigationBaseActivity implements LocationUp
|
||||||
.subscribeOn(Schedulers.io())
|
.subscribeOn(Schedulers.io())
|
||||||
.observeOn(AndroidSchedulers.mainThread())
|
.observeOn(AndroidSchedulers.mainThread())
|
||||||
.subscribe(this::populatePlaces);
|
.subscribe(this::populatePlaces);
|
||||||
}
|
} else if (locationChangeType.equals(LocationServiceManager.LocationChangeType.LOCATION_SLIGHTLY_CHANGED)) {
|
||||||
else if (locationChangeType
|
|
||||||
.equals(LocationServiceManager.LocationChangeType.LOCATION_SLIGHTLY_CHANGED)) {
|
|
||||||
Gson gson = new GsonBuilder()
|
Gson gson = new GsonBuilder()
|
||||||
.registerTypeAdapter(Uri.class, new UriSerializer())
|
.registerTypeAdapter(Uri.class, new UriSerializer())
|
||||||
.create();
|
.create();
|
||||||
|
|
@ -400,6 +398,7 @@ public class NearbyActivity extends NavigationBaseActivity implements LocationUp
|
||||||
ViewUtil.showSnackbar(findViewById(R.id.container), R.string.no_nearby);
|
ViewUtil.showSnackbar(findViewById(R.id.container), R.string.no_nearby);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//TODO: This hack inserts curLatLng before populatePlaces is called (see #1440). Ideally a proper fix should be found
|
||||||
//bundle.clear();
|
//bundle.clear();
|
||||||
bundle.putString("PlaceList", gsonPlaceList);
|
bundle.putString("PlaceList", gsonPlaceList);
|
||||||
//bundle.putString("CurLatLng", gsonCurLatLng);
|
//bundle.putString("CurLatLng", gsonCurLatLng);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue