aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThialfihar <thialfihar@gmail.com>2011-02-05 16:11:07 +0000
committerThialfihar <thialfihar@gmail.com>2011-02-05 16:11:07 +0000
commitf37204321d0853ac76321a8e5b20989c4e6fb67f (patch)
treef26ba67e2cf0730d614673722bfdfe8864e0e84c /src
parent36c2b860ce2e46cbfcf7a00bdda03ddc15e4cc3d (diff)
downloadopen-keychain-f37204321d0853ac76321a8e5b20989c4e6fb67f.tar.gz
open-keychain-f37204321d0853ac76321a8e5b20989c4e6fb67f.tar.bz2
open-keychain-f37204321d0853ac76321a8e5b20989c4e6fb67f.zip
don't include a Preference re-instantiation for now, will see about that when merging apg_service
Diffstat (limited to 'src')
-rw-r--r--src/org/thialfihar/android/apg/Preferences.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/org/thialfihar/android/apg/Preferences.java b/src/org/thialfihar/android/apg/Preferences.java
index e704d79f3..36325a126 100644
--- a/src/org/thialfihar/android/apg/Preferences.java
+++ b/src/org/thialfihar/android/apg/Preferences.java
@@ -13,12 +13,7 @@ public class Preferences {
private SharedPreferences mSharedPreferences;
public static synchronized Preferences getPreferences(Context context) {
- return getPreferences(context, false);
- }
-
- public static synchronized Preferences getPreferences(Context context, boolean force_new)
- {
- if (mPreferences == null || force_new) {
+ if (mPreferences == null) {
mPreferences = new Preferences(context);
}
return mPreferences;