add APIs needed for non legacy NewPipe version

This commit is contained in:
Julian Winkler
2023-09-12 23:18:47 +02:00
parent 399cf87254
commit f5fc993484
78 changed files with 2458 additions and 147 deletions

View File

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