mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
updated user preferences and tests
This commit is contained in:
@@ -58,6 +58,13 @@ export var setNumber = function(key: string, value: number): void {
|
||||
editor.commit();
|
||||
}
|
||||
|
||||
export var remove = function (key: string): void {
|
||||
Common.checkKey(key);
|
||||
var editor = sharedPreferences.edit();
|
||||
editor.remove(key);
|
||||
editor.commit();
|
||||
}
|
||||
|
||||
/*
|
||||
these are commented out to be used only if requested by users or otherwise needed
|
||||
|
||||
|
||||
Reference in New Issue
Block a user