mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-11-02 06:24:46 +01:00
Delete all tracks (trackpoints and markers) works via cascade.
This commit is contained in:
@@ -154,11 +154,7 @@ public class ContentProviderUtils {
|
|||||||
|
|
||||||
@VisibleForTesting
|
@VisibleForTesting
|
||||||
public void deleteAllTracks(Context context) {
|
public void deleteAllTracks(Context context) {
|
||||||
//TODO Both calls should not be necessary
|
// Delete tracks last since it triggers a database vacuum call
|
||||||
contentResolver.delete(TrackPointsColumns.CONTENT_URI_BY_ID, null, null);
|
|
||||||
contentResolver.delete(MarkerColumns.CONTENT_URI, null, null);
|
|
||||||
|
|
||||||
// Delete tracks last since it triggers a database vaccum call
|
|
||||||
contentResolver.delete(TracksColumns.CONTENT_URI, null, null);
|
contentResolver.delete(TracksColumns.CONTENT_URI, null, null);
|
||||||
|
|
||||||
File dir = FileUtils.getPhotoDir(context);
|
File dir = FileUtils.getPhotoDir(context);
|
||||||
|
|||||||
Reference in New Issue
Block a user