aboutsummaryrefslogtreecommitdiff
path: root/shadows/framework/src/main/java/org/robolectric/shadows/ShadowSettings.java
diff options
context:
space:
mode:
Diffstat (limited to 'shadows/framework/src/main/java/org/robolectric/shadows/ShadowSettings.java')
-rw-r--r--shadows/framework/src/main/java/org/robolectric/shadows/ShadowSettings.java10
1 files changed, 1 insertions, 9 deletions
diff --git a/shadows/framework/src/main/java/org/robolectric/shadows/ShadowSettings.java b/shadows/framework/src/main/java/org/robolectric/shadows/ShadowSettings.java
index 00149ac68..e5a7f5676 100644
--- a/shadows/framework/src/main/java/org/robolectric/shadows/ShadowSettings.java
+++ b/shadows/framework/src/main/java/org/robolectric/shadows/ShadowSettings.java
@@ -1,7 +1,5 @@
package org.robolectric.shadows;
-import static android.os.Build.VERSION_CODES.JELLY_BEAN;
-import static android.os.Build.VERSION_CODES.LOLLIPOP;
import static android.os.Build.VERSION_CODES.M;
import static android.os.Build.VERSION_CODES.P;
import static android.os.Build.VERSION_CODES.Q;
@@ -165,12 +163,6 @@ public class ShadowSettings {
return updateEnabledProviders(cr, provider, enabled);
}
- @Implementation(maxSdk = JELLY_BEAN)
- protected static void setLocationProviderEnabled(
- ContentResolver cr, String provider, boolean enabled) {
- updateEnabledProviders(cr, provider, enabled);
- }
-
// only for use locally and by ShadowLocationManager, which requires a tight integration with
// ShadowSettings due to historical weirdness between LocationManager and Settings.
static boolean updateEnabledProviders(ContentResolver cr, String provider, boolean enabled) {
@@ -240,7 +232,7 @@ public class ShadowSettings {
return true;
}
- @Implementation(minSdk = LOLLIPOP)
+ @Implementation
protected static boolean putIntForUser(
ContentResolver cr, String name, int value, int userHandle) {
putInt(cr, name, value);