From 4e4796d2758251f97064cf17b20876d04e92ff82 Mon Sep 17 00:00:00 2001 From: Samuel Tardieu Date: Sun, 5 Jan 2014 15:37:29 +0100 Subject: work on #2315: do not switch to internal storage Switching to internal storage has the potential for destructing some user data if the user reinserts an absent SD card and reswitches the applicatioon to use it. --- main/src/cgeo/geocaching/DataStore.java | 6 ------ 1 file changed, 6 deletions(-) (limited to 'main/src/cgeo/geocaching/DataStore.java') diff --git a/main/src/cgeo/geocaching/DataStore.java b/main/src/cgeo/geocaching/DataStore.java index 55a2025..bb8b427 100644 --- a/main/src/cgeo/geocaching/DataStore.java +++ b/main/src/cgeo/geocaching/DataStore.java @@ -323,12 +323,6 @@ public class DataStore { database = dbHelper.getWritableDatabase(); } catch (Exception f) { Log.e("DataStore.init: unable to recreate database and open it for R/W", f); - if (Settings.isDbOnSDCard()) { - Log.i("DataStore.init: trying to switch to internal database"); - Settings.setDbOnSDCard(false); - // Since the DB is now internal, we can retry the full procedure. - init(); - } } } -- cgit v1.1