aboutsummaryrefslogtreecommitdiff
path: root/shadows
diff options
context:
space:
mode:
Diffstat (limited to 'shadows')
-rw-r--r--shadows/framework/src/main/java/org/robolectric/shadows/ShadowCompatibility.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/shadows/framework/src/main/java/org/robolectric/shadows/ShadowCompatibility.java b/shadows/framework/src/main/java/org/robolectric/shadows/ShadowCompatibility.java
new file mode 100644
index 000000000..00f218043
--- /dev/null
+++ b/shadows/framework/src/main/java/org/robolectric/shadows/ShadowCompatibility.java
@@ -0,0 +1,17 @@
+package org.robolectric.shadows;
+
+import static android.os.Build.VERSION_CODES.S;
+
+import android.compat.Compatibility;
+
+import org.robolectric.annotation.Implementation;
+import org.robolectric.annotation.Implements;
+
+@Implements(value = Compatibility.class, minSdk = S)
+public class ShadowCompatibility {
+ // override to avoid calling to System.logW in the uninstrumented interface default method
+ @Implementation
+ public static boolean isChangeEnabled(long changeId) {
+ return true;
+ }
+}