Package org.robolectric.shadows
Class ShadowSettings.ShadowConfig
java.lang.Object
org.robolectric.shadows.ShadowSettings.ShadowConfig
- Enclosing class:
- ShadowSettings
@Implements(value=android.provider.Settings.Config.class,
isInAndroidSdk=false)
public static class ShadowSettings.ShadowConfig
extends Object
Shadow for
Settings.Config
.
This shadow is primarily to support DeviceConfig
, which queries
Settings.Config
. DeviceConfig
is pure Java code so it's not
necessary to shadow that directly.
The underlying implementation calls into a system content provider. Starting in Android U, the internal logic of Activity is querying DeviceConfig, so to avoid crashes we need to make DeviceConfig a no-op.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetStrings
(ContentResolver resolver, String namespace, List<String> names)
-
Constructor Details
-
ShadowConfig
public ShadowConfig()
-
-
Method Details
-
getStrings
@Implementation(minSdk=30) protected static Map<String,String> getStrings(ContentResolver resolver, String namespace, List<String> names)
-