Commit cc53aa8a authored by Administrator's avatar Administrator

update

parent b81b206c
......@@ -531,10 +531,14 @@ public class MainActivity extends BaseActivity implements View.OnClickListener {
} else if (requestCode == PreciseLocationActivity.PRECISE_LOCATION_RESULT_FLAG) {
Bundle bundle = data.getExtras();
if (resultCode == RESULT_OK) {
double lat = bundle.getDouble("lat");
double lng = bundle.getDouble("lng");
LatLng latLng = new LatLng(lat, lng);
setCurrentMapLatLng(latLng);
try {
double lat = bundle.getDouble("lat");
double lng = bundle.getDouble("lng");
LatLng latLng = new LatLng(lat, lng);
setCurrentMapLatLng(latLng);
} catch (Exception e) {
//ignore
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment