Removed 'My Tracks' from documentation and code.

This commit is contained in:
Dennis Guse
2019-07-23 21:44:24 +02:00
parent b11f671c59
commit 6dc03f567a
12 changed files with 14 additions and 19 deletions
@@ -63,7 +63,7 @@ public class DescriptionGeneratorImplTest {
track.setTripStatistics(stats);
track.setCategory("hiking");
String expected = "Created by"
+ " <a href='http://www.google.com/mobile/mytracks'>Google My Tracks</a> on Android<p>"
+ " <a href='TODO'>TODO</a> on Android<p>"
+ "Name: -<br>"
+ "Activity type: hiking<br>"
+ "Description: -<br>"
@@ -372,8 +372,7 @@ public class TrackRecordingServiceTest extends ServiceTestCase<TestRecordingServ
@MediumTest
public void testStartNewTrack_noRecording() throws Exception {
// NOTICE: due to the way Android permissions work, if this fails,
// uninstall the test apk then retry - the test must be installed *after*
// My Tracks (go figure).
// uninstall the test apk then retry - the test must be installed *after* the app (go figure).
// Reference: http://code.google.com/p/android/issues/detail?id=5521
BlockingBroadcastReceiver startReceiver = new BlockingBroadcastReceiver();
String startAction = context.getString(R.string.track_started_broadcast_action);
@@ -27,8 +27,7 @@ import androidx.fragment.app.FragmentActivity;
import com.google.android.apps.mytracks.util.TrackIconUtils;
/**
* An abstract class for all My Tracks activities.
*
*
* @author Jimmy Shih
*/
public abstract class AbstractActivity extends FragmentActivity {
@@ -28,14 +28,14 @@ import java.util.Iterator;
import java.util.List;
/**
* Utilities to access data from the My Tracks content provider.
* Utilities to access data from the app's content provider.
*
* @author Rodrigo Damazio
*/
public interface ContentProviderUtils {
/**
* The authority (the first part of the URI) for the My Tracks content
* The authority (the first part of the URI) for the app's content
* provider.
*/
String AUTHORITY = "com.google.android.maps.mytracks";
@@ -27,8 +27,6 @@ import com.google.android.maps.mytracks.R;
import java.util.Vector;
/**
* An implementation of {@link DescriptionGenerator} for My Tracks.
*
* @author Jimmy Shih
*/
public class DescriptionGeneratorImpl implements DescriptionGenerator {
@@ -94,7 +94,7 @@ public class TrackDataHub implements DataSourceListener {
*
* @param context the context
* @param trackDataManager the track data manager
* @param contentProviderUtils the my tracks provider utils
* @param contentProviderUtils the content tracks provider utils
* @param targetNumPoints the target number of points
*/
@VisibleForTesting
@@ -25,8 +25,7 @@ import androidx.annotation.NonNull;
import androidx.fragment.app.DialogFragment;
/**
* Abstract My Tracks DialogFragment.
*
* @author Jimmy Shih
*/
public abstract class AbstractDialogFragment extends DialogFragment {
@@ -48,7 +48,7 @@ public class FileTrackExporter implements TrackExporter {
/**
* Constructor.
*
* @param contentProviderUtils the my tracks provider utils
* @param contentProviderUtils the content provider utils
* @param tracks the tracks
* @param trackWriter the track writer
* @param trackExporterListener the track export listener
@@ -58,7 +58,7 @@ public class KmzTrackExporter implements TrackExporter {
/**
* Constructor.
*
* @param contentProviderUtils the my tracks provider utils
* @param contentProviderUtils the content provider utils
* @param fileTrackExporter the file track exporter
* @param tracks the tracks to export
* @param context the context
@@ -32,7 +32,7 @@ public class FileUtils {
private FileUtils() {}
/**
* The My Tracks external storage directory.
* Our external storage directory.
*/
static final String SDCARD_TOP_DIR = "MyTracks";
@@ -43,12 +43,12 @@ public class FileUtils {
static final int MAX_FAT32_PATH_LENGTH = 260;
/**
* The play tracks directory under the My Tracks cache directory.
* The play tracks directory in the app's cache directory.
*/
public static final String PLAY_TRACKS_DIR = "temp";
/**
* The pictures directory under the My Tracks external storage directory.
* The pictures directory under the app's external storage directory.
*/
private static final String PICTURES_DIR = "pictures";
@@ -37,7 +37,7 @@ public class SystemUtils {
private SystemUtils() {}
/**
* Get the My Tracks version from the manifest.
* Get the app version from the manifest.
*
* @return the version, or an empty string in case of failure.
*/
@@ -42,7 +42,7 @@ import android.view.View;
import android.widget.RemoteViews;
/**
* A track widget to start/stop/pause/resume recording, launch My Tracks, and
* A track widget to start/stop/pause/resume recording, launch the main activity, and
* display track statistics (total distance, total time, average speed, and
* moving time) for the recording track, the selected track or the last track.
*