Skip to content

Hide the ineffective 'Show app icon' setting on Android 10+ - #902

Open
MiMoHo wants to merge 1 commit into
openboard-team:masterfrom
MiMoHo:fix/app-icon-setting
Open

Hide the ineffective 'Show app icon' setting on Android 10+#902
MiMoHo wants to merge 1 commit into
openboard-team:masterfrom
MiMoHo:fix/app-icon-setting

Conversation

@MiMoHo

@MiMoHo MiMoHo commented Jul 6, 2026

Copy link
Copy Markdown

Summary

The "Show app icon" toggle in the advanced settings has no visible effect on Android 10+ (#728, #399): since API 29 the platform shows a synthesized launcher entry for apps that disable their only launcher activity, so the icon never actually disappears — the setting is a silent no-op.

Fix

  • Remove the preference from the advanced settings screen on API 29+.
  • In SystemBroadcastReceiver.toggleAppIcon(), always (re-)enable the SetupActivity component on API 29+. This also repairs the confusing half-disabled state for users who had switched the icon off before upgrading their Android version (component disabled + synthesized icon).
  • Android 9 and below keep the existing behaviour unchanged.

Testing

Verified on an Android 15 emulator: the "Show app icon" entry no longer appears in Settings → Advanced; the remaining advanced preferences work as before. Builds with the stock toolchain.

Fixes #728

🤖 Generated with Claude Code

…d-team#728)

Since Android 10 the platform no longer lets non-system apps hide their
own launcher icon: when the only launcher activity is disabled the
launcher shows a synthesized entry instead, so the toggle silently does
nothing (see openboard-team#728, openboard-team#399).

- Remove the preference from the advanced settings screen on API 29+.
- On API 29+ always (re-)enable the SetupActivity component in
  toggleAppIcon(), which also repairs the confusing half-disabled state
  for users who had turned the icon off before upgrading.
- Behaviour on Android 9 and below is unchanged.

Fixes openboard-team#728

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show app icon no effect

1 participant