From 0ab769cc750fee1e6468cc303fb2e2b42ec0d9c0 Mon Sep 17 00:00:00 2001 From: Samuel Tardieu Date: Tue, 1 Jan 2013 17:15:40 +0100 Subject: fix #2317: exception when backing up the phone We do not need a cgeoapplication instance anymore when trying to perform a backup. --- main/src/cgeo/geocaching/Settings.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'main/src') 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() { -- cgit v1.1