Exemplo n.º 1
0
  public String readString(String key, String defaultValue) {
    if (!this.integerConfigs.containsKey(key)) {
      SaveUtils save = new SaveUtils(EpiTime.getInstance().getCurrentActivity());
      this.stringConfigs.put(key, save.readString(TAG + key, defaultValue));
    }

    return this.stringConfigs.get(key);
  }
Exemplo n.º 2
0
  public Boolean readBoolean(String key, Boolean defaultValue) {
    if (!this.integerConfigs.containsKey(key)) {
      SaveUtils save = new SaveUtils(EpiTime.getInstance().getCurrentActivity());
      this.booleanConfigs.put(key, save.readBoolean(TAG + key, defaultValue));
    }

    return this.booleanConfigs.get(key);
  }
Exemplo n.º 3
0
 public void writeString(String key, String val) {
   SaveUtils save = new SaveUtils(EpiTime.getInstance().getCurrentActivity());
   save.putString(TAG + key, val);
   save.commit();
   this.stringConfigs.put(key, val);
 }
Exemplo n.º 4
0
 public void writeBoolean(String key, Boolean val) {
   SaveUtils save = new SaveUtils(EpiTime.getInstance().getCurrentActivity());
   save.putBoolean(TAG + key, val);
   save.commit();
   this.booleanConfigs.put(key, val);
 }
Exemplo n.º 5
0
 public void writeInt(String key, Integer val) {
   SaveUtils save = new SaveUtils(EpiTime.getInstance().getCurrentActivity());
   save.putInt(TAG + key, val);
   save.commit();
   this.integerConfigs.put(key, val);
 }