feat(settings): optional "Calendar" launcher name (#44) #86
Reference in New Issue
Block a user
Delete Branch "feat/app-name-toggle"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implements Codeberg issue #44 — an optional setting to change the app's launcher name between "Calendula" and "Calendar", for users on launchers that can't rename apps themselves. Maintainer green-lit it in the issue thread.
How it works
The launcher entry moves off
MainActivityonto two<activity-alias>components (DefaultNameAlias/CalendarNameAlias); exactly one is enabled at a time viaPackageManager.setComponentEnabledSetting.MainActivitykeeps every other intent filter untouched, and theandroid.app.shortcutsmeta-data moves onto both aliases (static shortcuts publish from the MAIN/LAUNCHER owner). Component-enabled state is the single source of truth — no persisted preference.Settings UI
Settings → Appearance → App name opens a full-screen picker showing both names as launcher-mark preview cards, so the user sees what they'd switch to. Tapping a card applies immediately and highlights it; back exits.
Notable implementation details
ComponentNameuses the applicationId for the package (carrying the.debug/.releasetestsuffix) and the namespace for the class, since manifest.Aliasnames resolve against the namespace — verified against the merged manifest so it works on the suffixed builds.launcherNameFor/aliasWritePlan) split out and JVM-tested; thePackageManagerwrapper is covered on-device.Testing
lint test assembleDebuggreen locally;check_translations.pyclean.Launcher-only rename (Settings › Apps / notifications / share sheet still read "Calendula"). Changelog noted in
21600.txt.