Permalink
Browse files

Commit SharedPreference changes

  • Loading branch information...
1 parent ad47ac4 commit 649c9ebb22471a607941bc71d064467aad5d662e @Jberlinsky committed Mar 30, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/com/Venus/NakedSkin/VenusDb.java
@@ -201,13 +201,15 @@ public void createDefaultPreferences(Context ctx) {
editor.putInt("underarmBikiniTreatmentLength", Constants.TEN_MINUTES);
editor.putInt("upperLowerLegTreatmentLength", Constants.FOURTY_FIVE_MINUTES);
editor.putInt("wholeBodyTreatmentLength", Constants.TWO_HOURS);
+ editor.commit();
}
public void setBooleanPreference(Context ctx, String key, boolean value)
{
SharedPreferences settings = getSharedPreferences(ctx);
SharedPreferences.Editor editor = settings.edit();
editor.putBoolean(key, value);
+ editor.commit();
}
public boolean isFirstTreatmentReminder(Context ctx)
@@ -227,6 +229,7 @@ public void setIntegerPreference(Context ctx, String key, int value)
SharedPreferences settings = getSharedPreferences(ctx);
SharedPreferences.Editor editor = settings.edit();
editor.putInt(key, value);
+ editor.commit();
}
public int getIntegerPreference(Context ctx, String key, int default_value)

0 comments on commit 649c9eb

Please sign in to comment.