markers resizing
This commit is contained in:
parent
549c2f6484
commit
ffcc68c107
@ -138,15 +138,16 @@ public class MapActivity extends BaseActivity
|
|||||||
mapboxMap.setOnMarkerClickListener(marker -> {
|
mapboxMap.setOnMarkerClickListener(marker -> {
|
||||||
String id = marker.getTitle();
|
String id = marker.getTitle();
|
||||||
if (id.equals(myID)) {
|
if (id.equals(myID)) {
|
||||||
Log.e(tag+"Manual", "my own marker from API");
|
Log.e(tag + "Manual", "my own marker from API");
|
||||||
Button rmButton = findViewById(R.id.remove_location_button);
|
Button rmButton = findViewById(R.id.remove_location_button);
|
||||||
rmButton.setVisibility(View.VISIBLE);
|
rmButton.setVisibility(View.VISIBLE);
|
||||||
rmButton.setOnClickListener(view -> {
|
rmButton.setOnClickListener(view -> {
|
||||||
Log.e(tag+"Manual", "manual coords sending stopped");
|
Log.e(tag + "Manual", "manual coords sending stopped");
|
||||||
// TODO to remove after BGserv
|
// TODO to remove after BGserv
|
||||||
manualLocHandler.removeCallbacks(manualLocStatusChecker);
|
manualLocHandler.removeCallbacks(manualLocStatusChecker);
|
||||||
|
|
||||||
rmButton.setVisibility(View.GONE);
|
rmButton.setVisibility(View.GONE);
|
||||||
|
Toast.makeText(MapActivity.this, "Your marker will disappear in next couple minutes", Toast.LENGTH_SHORT).show();
|
||||||
|
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
@ -269,7 +270,7 @@ public class MapActivity extends BaseActivity
|
|||||||
// TODO remove after BG sending
|
// TODO remove after BG sending
|
||||||
manualLocStatusChecker = () -> {
|
manualLocStatusChecker = () -> {
|
||||||
try {
|
try {
|
||||||
Log.e(tag+"Manual", "sending manual coords");
|
Log.e(tag + "Manual", "sending manual coords");
|
||||||
// TODO ^^^ wrapper to removve
|
// TODO ^^^ wrapper to removve
|
||||||
disposable.add(
|
disposable.add(
|
||||||
coordinateService
|
coordinateService
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 3.1 KiB |
Binary file not shown.
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 3.2 KiB |
Loading…
Reference in New Issue
Block a user