This commit is contained in:
14Sandee
2024-01-11 16:34:12 +05:30
parent 20ed53591c
commit 808f29cb80

View File

@@ -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;
}