diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2013-01-01 17:15:40 +0100 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2013-01-01 17:15:40 +0100 |
| commit | 0ab769cc750fee1e6468cc303fb2e2b42ec0d9c0 (patch) | |
| tree | 19c44dc92eef84b5ba210f6a3667fa50bc29b1f6 | |
| parent | 67f776a540e883a20baa88bc24a9fd5b0dcd6b40 (diff) | |
| download | cgeo-0ab769cc750fee1e6468cc303fb2e2b42ec0d9c0.zip cgeo-0ab769cc750fee1e6468cc303fb2e2b42ec0d9c0.tar.gz cgeo-0ab769cc750fee1e6468cc303fb2e2b42ec0d9c0.tar.bz2 | |
fix #2317: exception when backing up the phone
We do not need a cgeoapplication instance anymore when trying to perform
a backup.
| -rw-r--r-- | main/src/cgeo/geocaching/Settings.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/Settings.java b/main/src/cgeo/geocaching/Settings.java index e1ae9c0..7e6f91f 100644 --- a/main/src/cgeo/geocaching/Settings.java +++ b/main/src/cgeo/geocaching/Settings.java @@ -1360,8 +1360,9 @@ public final class Settings { } public static String getPreferencesName() { - // there is currently no Android API to get the file name of the shared preferences - return cgeoapplication.getInstance().getPackageName() + "_preferences"; + // There is currently no Android API to get the file name of the shared preferences. Let's hardcode + // it without needing a cgeoapplication instance. + return "cgeo.geocaching_preferences"; } public static boolean getPlainLogs() { |
