From d2a245194f1f2f15955e6b1e43f6f397028c23ee Mon Sep 17 00:00:00 2001 From: Jimmy Shih Date: Wed, 21 Mar 2012 16:04:53 -0700 Subject: [PATCH] Cleanup all remaining dialogs. - Use DialogUtils to create a spinner or a horizontal progress dialog. - Update all progress dialog messages. --- MyTracks/res/values/strings.xml | 53 ++++---- .../android/apps/mytracks/ExportActivity.java | 22 ++-- .../android/apps/mytracks/ImportActivity.java | 22 ++-- .../android/apps/mytracks/MapActivity.java | 2 +- .../apps/mytracks/SettingsActivity.java | 9 +- .../android/apps/mytracks/TrackList.java | 6 +- .../android/apps/mytracks/WaypointsList.java | 2 +- .../mytracks/io/backup/BackupActivity.java | 25 ++-- .../mytracks/io/backup/RestoreActivity.java | 25 ++-- .../apps/mytracks/io/file/SaveActivity.java | 24 ++-- .../mytracks/io/maps/ChooseMapActivity.java | 75 ++++++------ .../io/sendtogoogle/AbstractSendActivity.java | 32 +++-- .../sendtogoogle/AccountChooserActivity.java | 114 +++++++++--------- .../io/sendtogoogle/UploadResultActivity.java | 6 +- .../apps/mytracks/util/DialogUtils.java | 57 +++++++-- 15 files changed, 239 insertions(+), 235 deletions(-) diff --git a/MyTracks/res/values/strings.xml b/MyTracks/res/values/strings.xml index 3cf0e2062..d0404fe29 100644 --- a/MyTracks/res/values/strings.xml +++ b/MyTracks/res/values/strings.xml @@ -664,11 +664,13 @@ limitations under the License. indicating error."> Unable to export. + + Exporting all tracks... + + indicating success."> Export finished. @@ -786,6 +788,10 @@ limitations under the License. No GPX file found in %1$s. The SD card may be unreadable or the directory may not contain any GPX file. + + Importing all tracks... + Your maps could not be loaded at this time. - - Loading your Google Maps. - @@ -818,6 +819,11 @@ limitations under the License. 'Maps' list page asking the user to pick one of his maps."> Pick a map: + + Loading your Google Maps... + @@ -1182,12 +1188,9 @@ limitations under the License. file."> Unable to write to a file. - - Exporting a track to the SD card. This may take a while. + + Saving to the SD card... You did not select any service. No data is sent. - - Sending to %1$s. Please wait... + Sending to %1$s... - Writing all tracks and settings to the SD card. This may take a while... + progress message telling the user that it is writing all tracks and settings to the SD card."> + Writing all tracks and settings... - Reading all tracks and settings from the SD card. This may take a while... + progress message informing that My Tracks is reading all tracks and settings from the backup + on the SD card."> + Reading all tracks and settings...