diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2014-01-05 15:37:29 +0100 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2014-01-05 15:37:31 +0100 |
| commit | 4e4796d2758251f97064cf17b20876d04e92ff82 (patch) | |
| tree | 400c62a6822c53480c10b3107260162de5e8930d | |
| parent | 2ddbd545f27f977e5c127179cb71c03f5c08cf5b (diff) | |
| download | cgeo-4e4796d2758251f97064cf17b20876d04e92ff82.zip cgeo-4e4796d2758251f97064cf17b20876d04e92ff82.tar.gz cgeo-4e4796d2758251f97064cf17b20876d04e92ff82.tar.bz2 | |
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.
| -rw-r--r-- | main/src/cgeo/geocaching/DataStore.java | 6 |
1 files changed, 0 insertions, 6 deletions
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(); - } } } |
