Compare commits
5 Commits
show_notif
...
ab0108fab9
Author | SHA1 | Date | |
---|---|---|---|
ab0108fab9 | |||
2771fe0114 | |||
e7b6d0b9c3 | |||
aedeb80fbd | |||
8a9ea703c7 |
@ -279,6 +279,6 @@ public class HistoryActivity extends AppCompatActivity implements OnMapReadyCall
|
||||
this.googleMap.getUiSettings().setMapToolbarEnabled(false);
|
||||
|
||||
parentTab.demoPositionsList();
|
||||
displayButton.performClick();
|
||||
// displayButton.performClick();
|
||||
}
|
||||
}
|
@ -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) {
|
||||
|
@ -167,6 +167,8 @@ public class MessagesActivity extends Activity {
|
||||
// button send message
|
||||
imageButtonSend = findViewById(R.id.imageButtonSend);
|
||||
imageButtonSend.setOnClickListener(v -> {
|
||||
if (editTextMsg.getText().toString().isEmpty())
|
||||
return;
|
||||
sendSMS(getScId(), editTextMsg.getText().toString());
|
||||
Toast.makeText(context, "Sending message...", Toast.LENGTH_SHORT).show();
|
||||
// disable send button and editBox
|
||||
|
@ -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();
|
||||
@ -1225,7 +1225,8 @@ public class TabLayoutActivity extends AbstractSDParentActivity {
|
||||
image.setImageResource(AppParams.DEMO ? R.drawable.icon_demo : R.mipmap.ic_launcher);
|
||||
TextView text = dialog.findViewById(R.id.text);
|
||||
TextView text2 = dialog.findViewById(R.id.text2);
|
||||
text.setText(String.format("%s1.0.8", getString(R.string.version)));
|
||||
text.setText(getString(R.string.version) + " " + BuildConfig.VERSION_NAME);
|
||||
|
||||
text2.setText(String.format("%s: support@safemobile.com", getString(R.string.email)));
|
||||
dialog.setCancelable(true);
|
||||
dialog.setCanceledOnTouchOutside(true);
|
||||
|
Reference in New Issue
Block a user