Settings: add Global.getString

This commit is contained in:
Mattéo Axelle 2024-10-30 22:28:28 +01:00 committed by Mis012
parent 82801b4303
commit b528bad2fc

View file

@ -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 {}