Skip to content

Commit d4969ae

Browse files
committed
Fix welcome license price load race on first attach
1 parent ef87f9a commit d4969ae

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

presentation/src/main/java/org/cryptomator/presentation/ui/fragment/WelcomeLicenseFragment.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,15 @@ class WelcomeLicenseFragment : BaseFragment<FragmentWelcomeLicenseBinding>(Fragm
5151
}
5252

5353
private fun setupIapUi() {
54+
val app = requireActivity().application as CryptomatorApp
5455
licenseContentViewBinder.bindInitialIapLayout()
5556
licenseContentViewBinder.bindLegalLinks()
5657
licenseContentViewBinder.bindPurchaseButtons(
5758
activity = requireActivity(),
58-
app = requireActivity().application as CryptomatorApp,
59+
app = app,
5960
onTrialClicked = { listener?.onStartTrial() }
6061
)
62+
licenseContentViewBinder.loadAndBindPrices(app)
6163
}
6264

6365
private fun setupLicenseEntryUi() {

0 commit comments

Comments
 (0)