Example #1
0
 public static void saveBlackList(Context paramContext) {
   paramContext = paramContext.getSharedPreferences("imblacklist", 0).edit();
   if ((sBlackList == null) || (sBlackList.size() == 0)) {
     paramContext.putString("imlist", "");
     paramContext.commit();
   }
   String str;
   do {
     return;
     str = JSON.toJSONString(sBlackList);
   } while (str == null);
   paramContext.putString("imlist", str);
   paramContext.commit();
 }
    public static boolean putBooleanPref(Context context, String s, boolean flag)
    {
        boolean flag1;
        flag1 = false;
        if (!validate(context, s))
        {
            return false;
        }
        context = context.getSharedPreferences("nfxpref", 0).edit();
        context.putBoolean(s, flag);
        context.commit();
        flag = true;
_L2:
        return flag;
        context;
        Log.e("nfxpref", "Failed to save to preferences!", context);
        flag = flag1;
        if (true) goto _L2; else goto _L1