mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-04-28 12:17:57 +03:00
Settings: add Global.getString
This commit is contained in:
parent
82801b4303
commit
b528bad2fc
1 changed files with 8 additions and 0 deletions
|
@ -81,6 +81,14 @@ public class Settings {
|
|||
return def;
|
||||
}
|
||||
}
|
||||
|
||||
public static String getString(ContentResolver cr, String key) {
|
||||
switch (key) {
|
||||
default:
|
||||
java.lang.System.out.println("!!!! Settings$Global.getString: unknown key: >" + key + "<");
|
||||
return "STRING_FROM_SETTINGS_GLOBAL_WITH_KEY_" + key;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static class SettingNotFoundException extends AndroidException {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue