forked from upstream-mirrors/OpenTracks
Minor fixes noticed on first review.
This commit is contained in:
@@ -455,7 +455,8 @@ public class ChartActivity extends Activity implements
|
|||||||
public boolean onOptionsItemSelected(MenuItem item) {
|
public boolean onOptionsItemSelected(MenuItem item) {
|
||||||
switch (item.getItemId()) {
|
switch (item.getItemId()) {
|
||||||
case MyTracksConstants.MENU_CHART_SETTINGS:
|
case MyTracksConstants.MENU_CHART_SETTINGS:
|
||||||
MyTracks.getInstance().showDialogSafely(DialogManager.DIALOG_CHART_SETTINGS);
|
MyTracks.getInstance().showDialogSafely(
|
||||||
|
DialogManager.DIALOG_CHART_SETTINGS);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return super.onOptionsItemSelected(item);
|
return super.onOptionsItemSelected(item);
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ import com.google.android.apps.mytracks.io.GpxImporter;
|
|||||||
import com.google.android.apps.mytracks.io.SendToDocs;
|
import com.google.android.apps.mytracks.io.SendToDocs;
|
||||||
import com.google.android.apps.mytracks.io.SendToMyMaps;
|
import com.google.android.apps.mytracks.io.SendToMyMaps;
|
||||||
import com.google.android.apps.mytracks.io.SendToMyMaps.OnSendCompletedListener;
|
import com.google.android.apps.mytracks.io.SendToMyMaps.OnSendCompletedListener;
|
||||||
|
import com.google.android.apps.mytracks.io.TempFileCleaner;
|
||||||
import com.google.android.apps.mytracks.io.TrackWriter;
|
import com.google.android.apps.mytracks.io.TrackWriter;
|
||||||
import com.google.android.apps.mytracks.io.TrackWriterFactory;
|
import com.google.android.apps.mytracks.io.TrackWriterFactory;
|
||||||
import com.google.android.apps.mytracks.io.TrackWriterFactory.TrackFileFormat;
|
import com.google.android.apps.mytracks.io.TrackWriterFactory.TrackFileFormat;
|
||||||
@@ -115,7 +116,7 @@ public class MyTracks extends TabActivity implements OnTouchListener,
|
|||||||
private final AccountChooser accountChooser = new AccountChooser();
|
private final AccountChooser accountChooser = new AccountChooser();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Dialogs:
|
* Dialogs manager.
|
||||||
*/
|
*/
|
||||||
private DialogManager dialogManager;
|
private DialogManager dialogManager;
|
||||||
|
|
||||||
@@ -345,6 +346,7 @@ public class MyTracks extends TabActivity implements OnTouchListener,
|
|||||||
protected void onStop() {
|
protected void onStop() {
|
||||||
Log.d(MyTracksConstants.TAG, "MyTracks.onStop");
|
Log.d(MyTracksConstants.TAG, "MyTracks.onStop");
|
||||||
// Clean up any temporary GPX and KML files.
|
// Clean up any temporary GPX and KML files.
|
||||||
|
(new TempFileCleaner()).clean();
|
||||||
super.onStop();
|
super.onStop();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -725,7 +727,7 @@ public class MyTracks extends TabActivity implements OnTouchListener,
|
|||||||
/**
|
/**
|
||||||
* Resets status information for sending to MyMaps/Docs.
|
* Resets status information for sending to MyMaps/Docs.
|
||||||
*/
|
*/
|
||||||
void resetSendToGoogleStatus() {
|
public void resetSendToGoogleStatus() {
|
||||||
sendToMyMapsMessage = "";
|
sendToMyMapsMessage = "";
|
||||||
sendToMyMapsSuccess = true;
|
sendToMyMapsSuccess = true;
|
||||||
sendToDocsMessage = "";
|
sendToDocsMessage = "";
|
||||||
@@ -839,7 +841,7 @@ public class MyTracks extends TabActivity implements OnTouchListener,
|
|||||||
* Shares a link to a My Map via external app (email, gmail, ...)
|
* Shares a link to a My Map via external app (email, gmail, ...)
|
||||||
* A chooser with apps that support text/plain will be shown to the user.
|
* A chooser with apps that support text/plain will be shown to the user.
|
||||||
*/
|
*/
|
||||||
void shareLinkToMyMap(String mapId) {
|
public void shareLinkToMyMap(String mapId) {
|
||||||
Intent shareIntent = new Intent(Intent.ACTION_SEND);
|
Intent shareIntent = new Intent(Intent.ACTION_SEND);
|
||||||
shareIntent.setType("text/plain");
|
shareIntent.setType("text/plain");
|
||||||
shareIntent.putExtra(Intent.EXTRA_SUBJECT,
|
shareIntent.putExtra(Intent.EXTRA_SUBJECT,
|
||||||
|
|||||||
Reference in New Issue
Block a user