SP::putDouble
This commit is contained in:
parent
be2866d894
commit
3287129eef
|
@ -96,6 +96,18 @@ public class SP {
|
||||||
editor.apply();
|
editor.apply();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static public void putDouble(String key, double value) {
|
||||||
|
SharedPreferences.Editor editor = sharedPreferences.edit();
|
||||||
|
editor.putString(key, Double.toString(value));
|
||||||
|
editor.apply();
|
||||||
|
}
|
||||||
|
|
||||||
|
static public void putDouble(int resourceID, double value) {
|
||||||
|
SharedPreferences.Editor editor = sharedPreferences.edit();
|
||||||
|
editor.putString(MainApp.gs(resourceID), Double.toString(value));
|
||||||
|
editor.apply();
|
||||||
|
}
|
||||||
|
|
||||||
static public void putLong(String key, long value) {
|
static public void putLong(String key, long value) {
|
||||||
SharedPreferences.Editor editor = sharedPreferences.edit();
|
SharedPreferences.Editor editor = sharedPreferences.edit();
|
||||||
editor.putLong(key, value);
|
editor.putLong(key, value);
|
||||||
|
|
Loading…
Reference in a new issue