Minor leftover cleanup

This commit is contained in:
Rodrigo Damazio
2010-08-24 21:49:42 -03:00
parent ad6340c1a7
commit aa95e3abcd
2 changed files with 3 additions and 3 deletions
@@ -96,7 +96,6 @@ public class BackupActivityHelper {
showToast(R.string.io_write_finished);
} catch (IOException e) {
showToast(R.string.io_write_failed);
return;
} finally {
dismissDialog(progressDialog);
}
@@ -131,7 +130,7 @@ public class BackupActivityHelper {
// Show a confirmation dialog
Builder confirmationDialogBuilder = new AlertDialog.Builder(activity);
confirmationDialogBuilder.setMessage(R.string.restore_overwrites_warning);
confirmationDialogBuilder.setCancelable(false);
confirmationDialogBuilder.setCancelable(true);
confirmationDialogBuilder.setPositiveButton(android.R.string.yes,
new OnClickListener() {
@Override
@@ -139,6 +138,7 @@ public class BackupActivityHelper {
pickBackupForRestore(backupDates);
}
});
confirmationDialogBuilder.setNegativeButton(android.R.string.no, null);
confirmationDialogBuilder.create().show();
}
@@ -49,7 +49,7 @@ import java.util.TimeZone;
class ExternalFileBackup {
// Filename format - in UTC
private static final SimpleDateFormat BACKUP_FILENAME_FORMAT =
new SimpleDateFormat("'backup-'yyyy-MM-dd_HH-mm-ss");
new SimpleDateFormat("'backup-'yyyy-MM-dd_HH-mm-ss'.mytracks'");
static {
BACKUP_FILENAME_FORMAT.setTimeZone(TimeZone.getTimeZone("UTC"));
}