Skip to content

Commit

Permalink
Merge pull request #192 from superwall/ir/fix/activity-request-feature
Browse files Browse the repository at this point in the history
Move super.onCreate after requesting window features
  • Loading branch information
ianrumac authored Oct 18, 2024
2 parents a4c3809 + f2abd14 commit ad643a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -149,6 +147,7 @@ class SuperwallPaywallActivity : AppCompatActivity() {
}

requestWindowFeature(Window.FEATURE_NO_TITLE)
super.onCreate(savedInstanceState)

val key = intent.getStringExtra(VIEW_KEY)
if (key == null) {
Expand Down

0 comments on commit ad643a9

Please sign in to comment.