diff --git a/src/main/java/de/dennisguse/opentracks/data/CustomContentProvider.java b/src/main/java/de/dennisguse/opentracks/data/CustomContentProvider.java index 94371c614..e8d8ee1de 100644 --- a/src/main/java/de/dennisguse/opentracks/data/CustomContentProvider.java +++ b/src/main/java/de/dennisguse/opentracks/data/CustomContentProvider.java @@ -124,7 +124,6 @@ public boolean onCreate() { boolean onCreate(Context context) { try (CustomSQLiteOpenHelper databaseHelper = new CustomSQLiteOpenHelper(context)) { db = databaseHelper.getWritableDatabase(); - // Necessary to enable cascade deletion from Track to TrackPoints and Markers db.setForeignKeyConstraintsEnabled(true); } catch (SQLiteException e) { Log.e(TAG, "Unable to open database for writing.", e);