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
add APIs needed for non legacy NewPipe version
This commit is contained in:
@@ -28,6 +28,8 @@ public class Settings {
|
||||
public static final class System {
|
||||
public static final Uri CONTENT_URI = null; // Uri.parse("content://settings/system");
|
||||
|
||||
public static final Uri DEFAULT_NOTIFICATION_URI = getUriFor("notification_sound");
|
||||
|
||||
public static int getInt(ContentResolver cr, String key, int def) {
|
||||
int ret = getInt(cr, key);
|
||||
if (ret != -1) {
|
||||
@@ -54,5 +56,16 @@ public class Settings {
|
||||
}
|
||||
}
|
||||
|
||||
public static final class Global {
|
||||
|
||||
public static int getInt(ContentResolver cr, String key, int def) {
|
||||
switch (key) {
|
||||
default:
|
||||
java.lang.System.out.println("!!!! Settings$Global.getInt: unknown key: >" + key + "<");
|
||||
return def;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static class SettingNotFoundException extends AndroidException {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user