fixed promotion first launch notifications
This commit is contained in:
parent
bba95d7d04
commit
390e2d6fbd
|
@ -845,7 +845,7 @@ class HomeActivity : BaseActivity(), OnClickListener, OnPageChangeListener, Supp
|
|||
// Skip if app doesn't support extra features
|
||||
if (!extraFeaturesService.isSupported()) return
|
||||
// Skip if already bought enhanced features pack or have set promotions options
|
||||
if (!extraFeaturesService.isEnabled(ExtraFeaturesService.FEATURE_FEATURES_PACK)
|
||||
if (extraFeaturesService.isEnabled(ExtraFeaturesService.FEATURE_FEATURES_PACK)
|
||||
|| promotionsEnabledKey in preferences) {
|
||||
return
|
||||
}
|
||||
|
|
|
@ -80,6 +80,10 @@ class PremiumDashboardActivity : BaseActivity() {
|
|||
|
||||
override fun onDestroy() {
|
||||
extraFeaturesService.release()
|
||||
if (isFinishing) {
|
||||
// Make sure promotionsEnabled set
|
||||
preferences[promotionsEnabledKey] = preferences[promotionsEnabledKey]
|
||||
}
|
||||
super.onDestroy()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue