mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-12-24 07:58:50 -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