From c6a89ee7b9f9cd953464be6c5f57b0ec57623fe0 Mon Sep 17 00:00:00 2001 From: Denis Date: Mon, 14 Jul 2014 16:39:15 +0400 Subject: [PATCH] fixed application fall because of Toast created in background thread --- OsmAnd/src/net/osmand/plus/helpers/GpxImportHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/helpers/GpxImportHelper.java b/OsmAnd/src/net/osmand/plus/helpers/GpxImportHelper.java index a224b133b6..983b4139f1 100644 --- a/OsmAnd/src/net/osmand/plus/helpers/GpxImportHelper.java +++ b/OsmAnd/src/net/osmand/plus/helpers/GpxImportHelper.java @@ -178,13 +178,13 @@ public class GpxImportHelper { favoritesHelper.addFavourite(favourite, false); } favoritesHelper.saveCurrentPointsIntoFile(); - AccessibleToast.makeText(mapActivity, R.string.fav_imported_sucessfully, Toast.LENGTH_LONG).show(); return null; } @Override protected void onPostExecute(GPXUtilities.GPXFile result) { progress.dismiss(); + AccessibleToast.makeText(mapActivity, R.string.fav_imported_sucessfully, Toast.LENGTH_LONG).show(); final Intent newIntent = new Intent(mapActivity, application.getAppCustomization().getFavoritesActivity()); mapActivity.startActivity(newIntent); }