This commit is contained in:
Dennis Guse
2025-12-06 08:45:52 +01:00
parent 2cab394d03
commit 2f90784442
5 changed files with 8 additions and 19 deletions
@@ -292,15 +292,9 @@ public class CustomContentProvider extends ContentProvider {
public int update(@NonNull Uri url, ContentValues values, String where, String[] selectionArgs) {
String table;
switch (getUrlType(url)) {
case TRACKPOINTS -> {
table = TrackPointsColumns.TABLE_NAME;
}
case TRACKS -> {
table = TracksColumns.TABLE_NAME;
}
case MARKERS -> {
table = MarkerColumns.TABLE_NAME;
}
case TRACKPOINTS -> table = TrackPointsColumns.TABLE_NAME;
case TRACKS -> table = TracksColumns.TABLE_NAME;
case MARKERS -> table = MarkerColumns.TABLE_NAME;
default -> throw new IllegalArgumentException("Unknown url " + url);
}