From f52b1f0c1a58978efd5e8478f29484cb1f3b421e Mon Sep 17 00:00:00 2001 From: Bananeweizen Date: Mon, 3 Oct 2011 13:47:07 +0200 Subject: fix #120: make settings static (no singleton) * Settings can no longer be instantiated, everything is static instead. * Most option values are no longer cached in fields. This has been done for clarity during the refactoring. I will add some performance tests afterwards and may re-introduce those fields for caching the option values. Sorry, if anyone gets merge issues afterwards. There was no easier way to implement this... --- main/src/cgeo/geocaching/backup/CentralBackupAgent.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main/src/cgeo/geocaching/backup') diff --git a/main/src/cgeo/geocaching/backup/CentralBackupAgent.java b/main/src/cgeo/geocaching/backup/CentralBackupAgent.java index 742eb0c..28b9e4b 100644 --- a/main/src/cgeo/geocaching/backup/CentralBackupAgent.java +++ b/main/src/cgeo/geocaching/backup/CentralBackupAgent.java @@ -1,6 +1,6 @@ package cgeo.geocaching.backup; -import cgeo.geocaching.cgSettings; +import cgeo.geocaching.Settings; import android.app.backup.BackupAgentHelper; import android.app.backup.SharedPreferencesBackupHelper; @@ -11,7 +11,7 @@ public class CentralBackupAgent extends BackupAgentHelper { @Override public void onCreate() { - SharedPreferencesBackupHelper helper = new SharedPreferencesBackupHelper(this, cgSettings.preferences); + SharedPreferencesBackupHelper helper = new SharedPreferencesBackupHelper(this, Settings.preferences); addHelper(PREFS_BACKUP_KEY, helper); } -- cgit v1.1