API stubs and fixes for composeUI

This commit is contained in:
Julian Winkler
2024-11-27 14:59:37 +01:00
committed by Mis012
parent 447784b6d6
commit e9cf5e7002
35 changed files with 559 additions and 24 deletions

View File

@@ -65,6 +65,7 @@ public class Settings {
}
public static final class Global {
public static final Uri CONTENT_URI = Uri.parse("content://settings/global");
public static int getInt(ContentResolver cr, String key, int def) {
switch (key) {
@@ -89,6 +90,10 @@ public class Settings {
return "STRING_FROM_SETTINGS_GLOBAL_WITH_KEY_" + key;
}
}
public static Uri getUriFor(String name) {
return Uri.withAppendedPath(CONTENT_URI, name);
}
}
public static class SettingNotFoundException extends AndroidException {}