markers resizing

This commit is contained in:
Adam Domagalski 2018-11-21 00:43:42 +01:00
parent 549c2f6484
commit ffcc68c107
3 changed files with 4 additions and 3 deletions

View File

@ -138,15 +138,16 @@ public class MapActivity extends BaseActivity
mapboxMap.setOnMarkerClickListener(marker -> {
String id = marker.getTitle();
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);
rmButton.setVisibility(View.VISIBLE);
rmButton.setOnClickListener(view -> {
Log.e(tag+"Manual", "manual coords sending stopped");
Log.e(tag + "Manual", "manual coords sending stopped");
// TODO to remove after BGserv
manualLocHandler.removeCallbacks(manualLocStatusChecker);
rmButton.setVisibility(View.GONE);
Toast.makeText(MapActivity.this, "Your marker will disappear in next couple minutes", Toast.LENGTH_SHORT).show();
});
} else {
@ -269,7 +270,7 @@ public class MapActivity extends BaseActivity
// TODO remove after BG sending
manualLocStatusChecker = () -> {
try {
Log.e(tag+"Manual", "sending manual coords");
Log.e(tag + "Manual", "sending manual coords");
// TODO ^^^ wrapper to removve
disposable.add(
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