Refactoring MarkerEditActivity. Logic has been moved to a ViewModel.

This commit is contained in:
Román Martínez
2020-11-22 17:33:46 +01:00
parent e133743547
commit 483736637e
3 changed files with 208 additions and 139 deletions
@@ -48,6 +48,11 @@ public final class Marker {
@Deprecated //TODO Make an URI instead of String
private String photoUrl = "";
public Marker(@Nullable Track.Id trackId) {
this.trackId = trackId;
location = null;
}
@VisibleForTesting
public Marker(@NonNull Track.Id trackId, @NonNull TrackPoint trackPoint) {
this(trackId, trackPoint.getLocation());