Update instant app (#200)
This commit is contained in:
parent
835ee03af5
commit
f0aecf26db
1 changed files with 9 additions and 5 deletions
|
@ -59,12 +59,8 @@ class SupportAppDialogFragment : AppCompatDialogFragment() {
|
||||||
setView(view)
|
setView(view)
|
||||||
|
|
||||||
if (isInstantMode) {
|
if (isInstantMode) {
|
||||||
setNeutralButton(R.string.no) { _, _ ->
|
|
||||||
analyticsManager.sentEvent(Analytics.DenyIapDialog)
|
|
||||||
}
|
|
||||||
|
|
||||||
val unlockMessage = context.getString(R.string.try_it)
|
val unlockMessage = context.getString(R.string.try_it)
|
||||||
setPositiveButton("$unlockMessage \uD83C\uDF9E️") { _, _ ->
|
setNeutralButton("$unlockMessage \uD83C\uDF9E️") { _, _ ->
|
||||||
activity?.let {
|
activity?.let {
|
||||||
if (!it.isFinishing) {
|
if (!it.isFinishing) {
|
||||||
adsManager.requestRewarded(
|
adsManager.requestRewarded(
|
||||||
|
@ -82,6 +78,14 @@ class SupportAppDialogFragment : AppCompatDialogFragment() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setPositiveButton(R.string.unlock_all) { _, _ ->
|
||||||
|
lifecycleScope.launch {
|
||||||
|
preferenceRepository.setShowSupport(false)
|
||||||
|
analyticsManager.sentEvent(Analytics.UnlockIapDialog)
|
||||||
|
billingManager.charge(requireActivity())
|
||||||
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if (targetThemeId != -1L) {
|
if (targetThemeId != -1L) {
|
||||||
val unlockMessage = context.getString(R.string.try_it)
|
val unlockMessage = context.getString(R.string.try_it)
|
||||||
|
|
Loading…
Reference in a new issue