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
API stubs and fixes for composeUI
This commit is contained in:
@@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user