Skip to content

Fix console color resource references and AutoJs singleton in LogBottomSheet#556

Draft
djbclark wants to merge 2 commits into
SuperMonster003:masterfrom
djbclark:pr/color-fix
Draft

Fix console color resource references and AutoJs singleton in LogBottomSheet#556
djbclark wants to merge 2 commits into
SuperMonster003:masterfrom
djbclark:pr/color-fix

Conversation

@djbclark

Copy link
Copy Markdown

Two small fixes in the log bottom sheet:

  1. XML layout: Change @color/console_debug@color/console_view_debug and @color/console_verbose@color/console_view_verbose — the old names referenced colors that don't exist, causing the console to render with default colors.

  2. Kotlin: Change AutoJs.getInstance() (nullable, null-guarded) to AutoJs.instance (non-null). The bottom sheet only opens from the main UI after AutoJs is initialized, so the null check was unnecessary defensive code — and the inner block was skipped entirely in practice.

Neither change is breaking. Tested on the fleet-profile fork build.

Thank you for maintaining this project — it's incredibly useful.

djbclark added 2 commits July 14, 2026 00:15
Replace AutoJs.getInstance() (nullable, null-guarded) with AutoJs.instance
(non-null) since the bottom sheet only opens after app initialization.
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.

1 participant