SD-230 #31

Merged
CiufudeanDani merged 9 commits from SD-230 into develop 2022-04-27 12:00:40 +00:00
2 changed files with 3 additions and 9 deletions
Showing only changes of commit 2771fe0114 - Show all commits

View File

@ -444,12 +444,6 @@ public class LiveActivity extends AbstractLiveActivity implements OnMapReadyCall
public void displayVehicle(double latZoom, double lngZoom) {
if (googleMap != null) {
String openWindow = "";
for (Marker marker : markers) {
if (marker.isInfoWindowShown()) {
openWindow = marker.getTitle();
}
}
googleMap.clear();
for (int i = 0; i < displayedVehicles.size(); i++) {
@ -464,7 +458,8 @@ public class LiveActivity extends AbstractLiveActivity implements OnMapReadyCall
markerOptions.icon(markerIcon);
Marker marker = this.googleMap.addMarker(markerOptions);
if (openWindow.equals(marker.getTitle()) || i == lastItemClicked) {
if (i == lastItemClicked) {
marker.showInfoWindow();
googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(newLocation, 14));
}
@ -474,7 +469,6 @@ public class LiveActivity extends AbstractLiveActivity implements OnMapReadyCall
}
}
}
lastItemClicked = 0;
}
private BitmapDescriptor getProperBitmap(int largeIcon, String text) {

View File

@ -700,7 +700,7 @@ public class TabLayoutActivity extends AbstractSDParentActivity {
tcpTimer = null;
}
if (getRadioActivity().audioThread != null) {
if (getRadioActivity() != null && getRadioActivity().audioThread != null) {
Thread moribund = getRadioActivity().audioThread;
getRadioActivity().audioThread = null;
moribund.interrupt();