.
This commit is contained in:
@@ -779,7 +779,7 @@ public class CgGeoFencingActivity extends AppCompatActivity implements OnMapRead
|
||||
.position(pat_cur_latLng)
|
||||
.title(name)
|
||||
.draggable(false);
|
||||
if (showLocationUpdates && patientData != null) {
|
||||
if (showLocationUpdates && patientData != null && patientData.profile_photo != null) {
|
||||
|
||||
MarkerBgBinding markerBgBinding = MarkerBgBinding.inflate(getLayoutInflater());
|
||||
|
||||
@@ -791,6 +791,8 @@ public class CgGeoFencingActivity extends AppCompatActivity implements OnMapRead
|
||||
@Override
|
||||
public boolean onLoadFailed(@Nullable GlideException e, Object model, Target<Drawable> target, boolean isFirstResource) {
|
||||
options.icon(BitmapDescriptorFactory.fromResource(R.drawable.img_pat_curr_location));
|
||||
if (curr_loc_marker != null) curr_loc_marker.remove();
|
||||
curr_loc_marker = mMap.addMarker(options);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user