don't include a Preference re-instantiation for now, will see about that when merging apg_service

This commit is contained in:
Thialfihar 2011-02-05 16:11:07 +00:00
parent 36c2b860ce
commit f37204321d

View file

@ -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;