diff --git a/CHANGELOG.md b/CHANGELOG.md index c2dbb3c0..aaa9eea4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ The changelog for `Superwall`. Also see the [releases](https://github.com/superw ### Fixes - Fixes issue when destroying activities during sleep would cause a background crash +- Fixes issue when using Superwall with some SDK's would cause a crash (i.e. Smartlook SDK) ## 1.3.0 diff --git a/superwall/src/main/java/com/superwall/sdk/paywall/vc/SuperwallPaywallActivity.kt b/superwall/src/main/java/com/superwall/sdk/paywall/vc/SuperwallPaywallActivity.kt index 9c8d2c59..4feac5e1 100644 --- a/superwall/src/main/java/com/superwall/sdk/paywall/vc/SuperwallPaywallActivity.kt +++ b/superwall/src/main/java/com/superwall/sdk/paywall/vc/SuperwallPaywallActivity.kt @@ -123,8 +123,6 @@ class SuperwallPaywallActivity : AppCompatActivity() { private fun paywallView(): PaywallView? = contentView?.findViewWithTag(ACTIVE_PAYWALL_TAG) override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - AppCompatDelegate.setCompatVectorFromResourcesEnabled(true) val presentationStyle = intent.getSerializableExtra(PRESENTATION_STYLE_KEY) as? PaywallPresentationStyle @@ -149,6 +147,7 @@ class SuperwallPaywallActivity : AppCompatActivity() { } requestWindowFeature(Window.FEATURE_NO_TITLE) + super.onCreate(savedInstanceState) val key = intent.getStringExtra(VIEW_KEY) if (key == null) {