forked from upstream-mirrors/OpenTracks
Fix gpx import thread error (issue 559)
This commit is contained in:
@@ -61,8 +61,8 @@ public class ImportAllTracks {
|
|||||||
Log.i(Constants.TAG, "ImportAllTracks: Starting");
|
Log.i(Constants.TAG, "ImportAllTracks: Starting");
|
||||||
fileUtils = new FileUtils();
|
fileUtils = new FileUtils();
|
||||||
gpxPath = fileUtils.buildExternalDirectoryPath("gpx");
|
gpxPath = fileUtils.buildExternalDirectoryPath("gpx");
|
||||||
|
this.activity.runOnUiThread(runner);
|
||||||
new Thread(runner).start();
|
//new Thread(runner).start();
|
||||||
}
|
}
|
||||||
|
|
||||||
private final Runnable runner = new Runnable() {
|
private final Runnable runner = new Runnable() {
|
||||||
|
|||||||
Reference in New Issue
Block a user