You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
Settings: add Global.getString
This commit is contained in:
@@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user