mirror of
https://github.com/moparisthebest/open-keychain
synced 2025-02-17 07:30:14 -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;
|
private SharedPreferences mSharedPreferences;
|
||||||
|
|
||||||
public static synchronized Preferences getPreferences(Context context) {
|
public static synchronized Preferences getPreferences(Context context) {
|
||||||
return getPreferences(context, false);
|
if (mPreferences == null) {
|
||||||
}
|
|
||||||
|
|
||||||
public static synchronized Preferences getPreferences(Context context, boolean force_new)
|
|
||||||
{
|
|
||||||
if (mPreferences == null || force_new) {
|
|
||||||
mPreferences = new Preferences(context);
|
mPreferences = new Preferences(context);
|
||||||
}
|
}
|
||||||
return mPreferences;
|
return mPreferences;
|
||||||
|
Loading…
Reference in New Issue
Block a user