Fix readonly connections

This commit is contained in:
Alex Sytnyk 2018-09-17 14:14:52 +03:00
parent 2989f07775
commit 1b94a89e4a

View file

@ -214,7 +214,7 @@ public class MapMarkersDbHelper {
}
public void removeMarkersGroup(String id) {
SQLiteConnection db = openConnection(true);
SQLiteConnection db = openConnection(false);
if (db != null) {
try {
db.execSQL("DELETE FROM " + GROUPS_TABLE_NAME + " WHERE " + GROUPS_COL_ID + " = ?", new Object[]{id});
@ -225,7 +225,7 @@ public class MapMarkersDbHelper {
}
public void removeActiveMarkersFromGroup(String groupId) {
SQLiteConnection db = openConnection(true);
SQLiteConnection db = openConnection(false);
if (db != null) {
try {
db.execSQL("DELETE FROM " + MARKERS_TABLE_NAME +
@ -562,7 +562,7 @@ public class MapMarkersDbHelper {
}
public void removeMarker(MapMarker marker) {
SQLiteConnection db = openConnection(true);
SQLiteConnection db = openConnection(false);
if (db != null) {
try {
db.execSQL("DELETE FROM " + MARKERS_TABLE_NAME +