Fix readonly connections
This commit is contained in:
parent
2989f07775
commit
1b94a89e4a
1 changed files with 3 additions and 3 deletions
|
@ -214,7 +214,7 @@ public class MapMarkersDbHelper {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void removeMarkersGroup(String id) {
|
public void removeMarkersGroup(String id) {
|
||||||
SQLiteConnection db = openConnection(true);
|
SQLiteConnection db = openConnection(false);
|
||||||
if (db != null) {
|
if (db != null) {
|
||||||
try {
|
try {
|
||||||
db.execSQL("DELETE FROM " + GROUPS_TABLE_NAME + " WHERE " + GROUPS_COL_ID + " = ?", new Object[]{id});
|
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) {
|
public void removeActiveMarkersFromGroup(String groupId) {
|
||||||
SQLiteConnection db = openConnection(true);
|
SQLiteConnection db = openConnection(false);
|
||||||
if (db != null) {
|
if (db != null) {
|
||||||
try {
|
try {
|
||||||
db.execSQL("DELETE FROM " + MARKERS_TABLE_NAME +
|
db.execSQL("DELETE FROM " + MARKERS_TABLE_NAME +
|
||||||
|
@ -562,7 +562,7 @@ public class MapMarkersDbHelper {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void removeMarker(MapMarker marker) {
|
public void removeMarker(MapMarker marker) {
|
||||||
SQLiteConnection db = openConnection(true);
|
SQLiteConnection db = openConnection(false);
|
||||||
if (db != null) {
|
if (db != null) {
|
||||||
try {
|
try {
|
||||||
db.execSQL("DELETE FROM " + MARKERS_TABLE_NAME +
|
db.execSQL("DELETE FROM " + MARKERS_TABLE_NAME +
|
||||||
|
|
Loading…
Reference in a new issue