corrections

This commit is contained in:
Dmitriy Ruban 2019-11-27 17:48:28 +02:00
parent c4eceebe1e
commit 5251e98eba

View file

@ -1706,7 +1706,7 @@ public class MapRouteInfoMenu implements IRouteInformationListener, CardListener
if (mapActivity != null) {
OsmandApplication app = mapActivity.getMyApplication();
Location loc = app.getLocationProvider().getLastKnownLocation();
int locationIconResByStatus = OsmAndLocationProvider.isLocationPermissionAvailable(mapActivity) & loc != null
int locationIconResByStatus = OsmAndLocationProvider.isLocationPermissionAvailable(mapActivity) && loc != null
? R.drawable.ic_action_location_color : R.drawable.ic_action_location_color_lost;
((ImageView) parentView.findViewById(R.id.fromIcon)).setImageDrawable(ContextCompat.getDrawable(mapActivity,