[android] Set the bearing of the checked object to avoid a null exception

Fixes #3213
This commit is contained in:
Antonio Zugaldia
2015-12-07 17:46:32 -08:00
parent 40b2d81a22
commit 9bd6abb023

View File

@@ -574,7 +574,7 @@ final class UserLocationView extends View {
mShowDirection = true;
mGpsMarkerDirection = 0;
if (location.hasBearing()) {
mMapView.setBearing(mUserLocation.getBearing());
mMapView.setBearing(location.getBearing());
}
}