Compare commits
No commits in common. "ab0108fab997fc00e56f18278db8b44a0a678d78" and "e7b6d0b9c36593d4f74296b75cef0c759e96c849" have entirely different histories.
ab0108fab9
...
e7b6d0b9c3
@ -279,6 +279,6 @@ public class HistoryActivity extends AppCompatActivity implements OnMapReadyCall
|
|||||||
this.googleMap.getUiSettings().setMapToolbarEnabled(false);
|
this.googleMap.getUiSettings().setMapToolbarEnabled(false);
|
||||||
|
|
||||||
parentTab.demoPositionsList();
|
parentTab.demoPositionsList();
|
||||||
// displayButton.performClick();
|
displayButton.performClick();
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -444,6 +444,12 @@ public class LiveActivity extends AbstractLiveActivity implements OnMapReadyCall
|
|||||||
|
|
||||||
public void displayVehicle(double latZoom, double lngZoom) {
|
public void displayVehicle(double latZoom, double lngZoom) {
|
||||||
if (googleMap != null) {
|
if (googleMap != null) {
|
||||||
|
String openWindow = "";
|
||||||
|
for (Marker marker : markers) {
|
||||||
|
if (marker.isInfoWindowShown()) {
|
||||||
|
openWindow = marker.getTitle();
|
||||||
|
}
|
||||||
|
}
|
||||||
googleMap.clear();
|
googleMap.clear();
|
||||||
|
|
||||||
for (int i = 0; i < displayedVehicles.size(); i++) {
|
for (int i = 0; i < displayedVehicles.size(); i++) {
|
||||||
@ -458,8 +464,7 @@ public class LiveActivity extends AbstractLiveActivity implements OnMapReadyCall
|
|||||||
markerOptions.icon(markerIcon);
|
markerOptions.icon(markerIcon);
|
||||||
|
|
||||||
Marker marker = this.googleMap.addMarker(markerOptions);
|
Marker marker = this.googleMap.addMarker(markerOptions);
|
||||||
|
if (openWindow.equals(marker.getTitle()) || i == lastItemClicked) {
|
||||||
if (i == lastItemClicked) {
|
|
||||||
marker.showInfoWindow();
|
marker.showInfoWindow();
|
||||||
googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(newLocation, 14));
|
googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(newLocation, 14));
|
||||||
}
|
}
|
||||||
@ -469,6 +474,7 @@ public class LiveActivity extends AbstractLiveActivity implements OnMapReadyCall
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
lastItemClicked = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
private BitmapDescriptor getProperBitmap(int largeIcon, String text) {
|
private BitmapDescriptor getProperBitmap(int largeIcon, String text) {
|
||||||
|
@ -700,7 +700,7 @@ public class TabLayoutActivity extends AbstractSDParentActivity {
|
|||||||
tcpTimer = null;
|
tcpTimer = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (getRadioActivity() != null && getRadioActivity().audioThread != null) {
|
if (getRadioActivity().audioThread != null) {
|
||||||
Thread moribund = getRadioActivity().audioThread;
|
Thread moribund = getRadioActivity().audioThread;
|
||||||
getRadioActivity().audioThread = null;
|
getRadioActivity().audioThread = null;
|
||||||
moribund.interrupt();
|
moribund.interrupt();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user