Skip to content

fix(ui): restore changelog dialog visibility after fresh install#1030

Merged
wax911 merged 1 commit into
developfrom
fix/changelog-dialog-repair
Jun 11, 2026
Merged

fix(ui): restore changelog dialog visibility after fresh install#1030
wax911 merged 1 commit into
developfrom
fix/changelog-dialog-repair

Conversation

@wax911

@wax911 wax911 commented Jun 11, 2026

Copy link
Copy Markdown
Member

What

Fixes a regression from #1029 where the changelog dialog was permanently hidden after a fresh install.

Root Cause

In checkNewInstallation(), the setUpdated() call inside the isFreshInstall branch prematurely cleared the isUpdated flag, then return prevented reaching the actual changelog code below. This made the changelog never show for any launch.

Additionally, the bottom sheet lifecycle triggered a second onResume() cycle, causing checkNewInstallation() to run twice. After isFreshInstall was cleared by the first call, the second call would hit isUpdated=true and stack the changelog dialog on top of the intro guide.

Fix

  1. Removed premature setUpdated() from the isFreshInstall branch — the return alone prevents stacking; let isUpdated survive for the next launch.
  2. Added hasCheckedInstallation session guard — prevents the method from executing more than once per activity instance, eliminating the double-invocation caused by the bottom sheet lifecycle.

Behavior

Scenario Before After
Fresh install (1st launch) Changelog stacked on intro guide Intro guide only
2nd launch Nothing (changelog permanently dead) Changelog dialog
3rd+ launch Nothing Nothing

Removed premature setUpdated() call from the isFreshInstall branch
that permanently cleared the isUpdated flag before the changelog code
could execute. Added a hasCheckedInstallation session guard to prevent
double-invocation via bottom sheet lifecycle triggering a second
onResume cycle, which would stack the changelog on top of the intro guide.
@wax911 wax911 enabled auto-merge (squash) June 11, 2026 21:08

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto approved automated PR

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@wax911 wax911 merged commit c924b45 into develop Jun 11, 2026
11 checks passed
@wax911 wax911 deleted the fix/changelog-dialog-repair branch June 11, 2026 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant