From dbf02bbd77f279b75cd37e611409446972bcc295 Mon Sep 17 00:00:00 2001 From: Chumva Date: Tue, 17 Jul 2018 13:44:36 +0300 Subject: [PATCH] rename SaveAndShareTask --- .../src/net/osmand/plus/myplaces/TrackPointFragment.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/myplaces/TrackPointFragment.java b/OsmAnd/src/net/osmand/plus/myplaces/TrackPointFragment.java index b0bd251679..f6bc70cb31 100644 --- a/OsmAnd/src/net/osmand/plus/myplaces/TrackPointFragment.java +++ b/OsmAnd/src/net/osmand/plus/myplaces/TrackPointFragment.java @@ -41,7 +41,6 @@ import android.widget.TextView; import net.osmand.AndroidUtils; import net.osmand.Collator; -import net.osmand.IndexConstants; import net.osmand.OsmAndCollator; import net.osmand.data.FavouritePoint; import net.osmand.data.LatLon; @@ -301,7 +300,7 @@ public class TrackPointFragment extends OsmandExpandableListFragment implements GPXFile gpxFile = getGpx(); if (gpxFile != null) { if (gpxFile.path.isEmpty() && getTrackActivity() != null) { - new SaveGpxAsyncTask(this, gpxFile).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); + new SaveAndShareTask(this, gpxFile).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); } else { shareGpx(gpxFile.path); } @@ -1234,12 +1233,12 @@ public class TrackPointFragment extends OsmandExpandableListFragment implements } } - public static class SaveGpxAsyncTask extends AsyncTask { + public static class SaveAndShareTask extends AsyncTask { private final GPXFile gpx; private final OsmandApplication app; private final WeakReference fragmentRef; - SaveGpxAsyncTask(@NonNull TrackPointFragment fragment, @NonNull GPXFile gpx) { + SaveAndShareTask(@NonNull TrackPointFragment fragment, @NonNull GPXFile gpx) { this.gpx = gpx; fragmentRef = new WeakReference<>(fragment); app = fragment.getMyApplication();