mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-05 02:53:06 +02:00
Remove unused methods in MyTracksProviderUtils
Change getLastValidLocation to getLastValidTrackLocation, thus all location related api takes trackId as an argument.
This commit is contained in:
@@ -125,7 +125,7 @@ public class TrackEditActivity extends AbstractMyTracksActivity {
|
||||
Button cancel = (Button) findViewById(R.id.track_edit_cancel);
|
||||
if (getIntent().getBooleanExtra(EXTRA_NEW_TRACK, false)) {
|
||||
String trackName = TrackNameUtils.getTrackName(
|
||||
this, -1L, -1L, myTracksProviderUtils.getLastValidLocation());
|
||||
this, -1L, -1L, myTracksProviderUtils.getLastValidTrackLocation(trackId));
|
||||
if (trackName != null) {
|
||||
name.setText(trackName);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user