Skip to content

Highlight disabled activities in yellow in the activity list - #194

Merged
sdex merged 5 commits into
sdex:mainfrom
BugeStudioTeam:main
Nov 20, 2026
Merged

sdex merged 5 commits into
sdex:mainfrom
BugeStudioTeam:main

Conversation

@BugeStudioTeam

Copy link
Copy Markdown
Contributor

Summary

Activities declared with android:enabled="false" in AndroidManifest.xml are now highlighted in yellow in the activity list, so they can be told apart from runnable ones at a glance.

The option is available in the activity list screen itself, in the overflow (three-dot) menu, and is enabled by default.

Changes

  • ActivitiesListAdapter
    • Disabled activities (ActivityInfo.enabled == false) are rendered with a yellow name (R.color.disabled_activity, #F9A825).
    • Color priority: disabled (yellow) > not exported (red) > requires permission (grey) > normal (theme primary).
    • The highlight flag has a setter that triggers notifyDataSetChanged(), so toggling it updates the list immediately.
  • ActivitiesListActivity
    • Added the Highlight disabled activities checkable menu item.
    • The item state is read from preferences when the menu is created and persisted when toggled.
  • res/menu/activities_list.xml
    • New checkable item, checked by default.
  • res/values/colors.xml
    • Added disabled_activity color.
  • res/values/strings.xml
    • Added the menu title.
  • AppPreferences / AppPreferencesImpl
    • New persisted preference isHighlightDisabledActivities, default true (DataStore key highlight_disabled_activities).

@sdex

sdex commented Nov 20, 2026

Copy link
Copy Markdown
Owner

Thank you! This version is much cleaner.
For now, I'm merging it as is, but I might tune it before a new release - change color or behavior, for example.
One thing I'm considering is handling programmatically disabled activities too.

@sdex
sdex merged commit eb05989 into sdex:main Nov 20, 2026
@BugeStudioTeam

Copy link
Copy Markdown
Contributor Author

Thank you! This version is much cleaner.
For now, I'm merging it as is, but I might tune it before a new release - change color or behavior, for example.
One thing I'm considering is handling programmatically disabled activities too.

thx :)

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.

2 participants