TrackDeleteActivity: keep a wakelock while deletion is ongoing.

This commit is contained in:
Dennis Guse
2020-07-13 17:56:47 +02:00
parent f209031df0
commit 7fd9893560
3 changed files with 13 additions and 3 deletions
@@ -69,10 +69,10 @@ public class KmlFileTrackImporter extends AbstractFileTrackImporter {
private ArrayList<Float> powerList;
/**
* Constructor.
*
* @param context the context
* @param importTrackId track id to import to. This should not be -1L so that images in the kmz file can be imported.
*/
@Deprecated //TODO Do not pass importTrackId here; get it from somewhere else
public KmlFileTrackImporter(Context context, long importTrackId) {
this(context, importTrackId, new ContentProviderUtils(context));
}
@@ -60,6 +60,7 @@ public class KmzTrackImporter implements TrackImporter {
* @param importTrackId track id to import to. This should not be -1L so that images in the kmz file can be imported.
* @param uriFile URI of the kmz file.
*/
@Deprecated //TODO Do not pass importTrackId here; get it from somewhere else
public KmzTrackImporter(Context context, long importTrackId, Uri uriFile) {
this.context = context;
this.importTrackId = importTrackId;