mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-23 17:22:16 -05:00
don't include a Preference re-instantiation for now, will see about that when merging apg_service
This commit is contained in:
parent
36c2b860ce
commit
f37204321d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user