Fixing the fixes for localization and track importing.

Fixes issue 462
Fixes issue 559
Fixes issue 540
This commit is contained in:
Rodrigo Damazio
2011-09-11 08:16:58 -03:00
parent 79c2cf90cf
commit eb6cdd0fc0
3 changed files with 31 additions and 17 deletions
@@ -61,8 +61,8 @@ public class ImportAllTracks {
Log.i(Constants.TAG, "ImportAllTracks: Starting");
fileUtils = new FileUtils();
gpxPath = fileUtils.buildExternalDirectoryPath("gpx");
this.activity.runOnUiThread(runner);
//new Thread(runner).start();
new Thread(runner).start();
}
private final Runnable runner = new Runnable() {
@@ -95,6 +95,15 @@ public class ImportAllTracks {
Log.i(Constants.TAG, "ImportAllTracks: Releasing wake lock.");
}
activity.runOnUiThread(new Thread() {
@Override
public void run() {
showDoneDialog();
}
});
}
private void showDoneDialog() {
Log.i(Constants.TAG, "ImportAllTracks: Done");
AlertDialog.Builder builder = new AlertDialog.Builder(activity);
if (gpxFileCount == 0) {