mirror of
https://github.com/TwidereProject/Twidere-Android
synced 2025-02-02 09:46:51 +01:00
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
|
// Skip if app doesn't support extra features
|
||||||
if (!extraFeaturesService.isSupported()) return
|
if (!extraFeaturesService.isSupported()) return
|
||||||
// Skip if already bought enhanced features pack or have set promotions options
|
// 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) {
|
|| promotionsEnabledKey in preferences) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -80,6 +80,10 @@ class PremiumDashboardActivity : BaseActivity() {
|
|||||||
|
|
||||||
override fun onDestroy() {
|
override fun onDestroy() {
|
||||||
extraFeaturesService.release()
|
extraFeaturesService.release()
|
||||||
|
if (isFinishing) {
|
||||||
|
// Make sure promotionsEnabled set
|
||||||
|
preferences[promotionsEnabledKey] = preferences[promotionsEnabledKey]
|
||||||
|
}
|
||||||
super.onDestroy()
|
super.onDestroy()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user