Skip to content

Commit

Permalink
Merge pull request #934 from bannzai/fix/logic/ended-pill-sheet-annou…
Browse files Browse the repository at this point in the history
…ncement

EndedPillSheetの順番の優先度を上げる
  • Loading branch information
bannzai authored Sep 6, 2023
2 parents 1e5504a + 9c5c19c commit 87cfd9d
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,15 @@ class AnnouncementBar extends HookConsumerWidget {
}
}

if (latestPillSheetGroup != null && latestPillSheetGroup.activePillSheet == null) {
// ピルシートグループが存在していてactivedPillSheetが無い場合はピルシート終了が何かしらの理由がなくなったと見なし終了表示にする
return EndedPillSheet(
isPremium: premiumAndTrial.isPremium,
isTrial: premiumAndTrial.isTrial,
trialDeadlineDate: premiumAndTrial.trialDeadlineDate,
);
}

if (premiumAndTrial.isTrial) {
final premiumTrialLimit = PremiumTrialLimitAnnouncementBar.retrievePremiumTrialLimit(premiumAndTrial);
if (premiumTrialLimit != null) {
Expand Down Expand Up @@ -106,15 +115,6 @@ class AnnouncementBar extends HookConsumerWidget {
}
}
}

if (latestPillSheetGroup != null && latestPillSheetGroup.activePillSheet == null) {
// ピルシートグループが存在していてactivedPillSheetが無い場合はピルシート終了が何かしらの理由がなくなったと見なし終了表示にする
return EndedPillSheet(
isPremium: premiumAndTrial.isPremium,
isTrial: premiumAndTrial.isTrial,
trialDeadlineDate: premiumAndTrial.trialDeadlineDate,
);
}
} else {
if (!isAdsDisabled && pilllAds != null) {
return PilllAdsAnnouncementBar(pilllAds: pilllAds, onClose: () => showPremiumIntroductionSheet(context));
Expand Down

0 comments on commit 87cfd9d

Please sign in to comment.