fixed promotion first launch notifications

This commit is contained in:
Mariotaku Lee 2017-08-30 12:45:04 +08:00
parent bba95d7d04
commit 390e2d6fbd
No known key found for this signature in database
GPG Key ID: 15C10F89D7C33535
2 changed files with 5 additions and 1 deletions

View File

@ -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
}

View File

@ -80,6 +80,10 @@ class PremiumDashboardActivity : BaseActivity() {
override fun onDestroy() {
extraFeaturesService.release()
if (isFinishing) {
// Make sure promotionsEnabled set
preferences[promotionsEnabledKey] = preferences[promotionsEnabledKey]
}
super.onDestroy()
}