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-impl: misc stubs and fixes for several apps including F-Droid and AuroraStore
This commit is contained in:
14
src/api-impl/android/provider/MediaStore.java
Normal file
14
src/api-impl/android/provider/MediaStore.java
Normal file
@@ -0,0 +1,14 @@
|
||||
package android.provider;
|
||||
|
||||
import android.net.Uri;
|
||||
|
||||
public class MediaStore {
|
||||
|
||||
public static class Images {
|
||||
|
||||
public static class Media {
|
||||
|
||||
public static final Uri EXTERNAL_CONTENT_URI = Uri.parse("content://media/external/images/media");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,12 +18,16 @@ public class Settings {
|
||||
}
|
||||
}
|
||||
public static int getInt(ContentResolver content_resolver, String key) {
|
||||
return getInt(content_resolver, key, -1);
|
||||
}
|
||||
|
||||
public static int getInt(ContentResolver content_resolver, String key, int def) {
|
||||
switch (key) {
|
||||
case "limit_ad_tracking":
|
||||
return 1; // obviously, duh
|
||||
default:
|
||||
java.lang.System.out.println("!!!! Settings$Secure.getInt: unknown key: >" + key + "<");
|
||||
return -1;
|
||||
return def;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user