Class ShadowCompatibility


  • @Implements(value=android.compat.Compatibility.class,
                isInAndroidSdk=false)
    public class ShadowCompatibility
    extends Object
    Robolectric shadow to disable CALL_ACTIVITY_RESULT_BEFORE_RESUME using Compatibility's isChangeEnabled.
    • Field Detail

      • realCompatibility

        @RealObject
        protected static android.compat.Compatibility realCompatibility
    • Constructor Detail

      • ShadowCompatibility

        public ShadowCompatibility()
    • Method Detail

      • isChangeEnabled

        @Implementation(minSdk=32)
        protected static boolean isChangeEnabled​(long changeId)