fix comments on 425100d373ad

This commit is contained in:
Jimmy Shih
2011-10-27 18:35:25 -07:00
parent b6dcbb1377
commit 3e22941484
8 changed files with 22 additions and 23 deletions
@@ -183,7 +183,7 @@ public class ExportAllTracks {
TrackWriter writer =
TrackWriterFactory.newWriter(activity, providerUtils, id, format);
if (writer == null) {
showToast(R.string.error_export_track_does_not_exist, Toast.LENGTH_LONG);
showToast(R.string.error_export_generic, Toast.LENGTH_LONG);
return;
}
@@ -172,10 +172,10 @@ public class ImportActivity extends Activity {
importedTrackIds = GpxImporter.importGPXFile(is, providerUtils);
} catch (SAXException e) {
Log.e(TAG, "Caught an unexpected exception.", e);
resultMessage = R.string.error_import_generic;
resultMessage = R.string.error_generic;
} catch (ParserConfigurationException e) {
Log.e(TAG, "Caught an unexpected exception.", e);
resultMessage = R.string.error_import_generic;
resultMessage = R.string.error_generic;
} catch (IOException e) {
Log.e(TAG, "Caught an unexpected exception.", e);
resultMessage = R.string.error_import_unable_to_read_file;
@@ -114,7 +114,7 @@ class TrackWriterImpl implements TrackWriter {
private void doWriteTrack() {
// Open the input and output
success = false;
errorMessage = R.string.error_export_track_does_not_exist;
errorMessage = R.string.error_export_generic;
if (track != null) {
if (openFile()) {
try {