Skip to content

Feature/dtc select all modules - #206

Merged
tzebrowski merged 3 commits into
masterfrom
feature/dtc-select-all-modules
Aug 12, 2026
Merged

Feature/dtc select all modules#206
tzebrowski merged 3 commits into
masterfrom
feature/dtc-select-all-modules

Conversation

@tzebrowski

Copy link
Copy Markdown
Owner

No description provided.

tzebrowski and others added 3 commits August 12, 2026 08:10
Picking DTC modules to scan or clear previously required checking each
module individually. The picker dialog now has a neutral button that
selects or deselects every module at once (label reflects current
state), disables the confirm button when nothing is selected, and
shows a distinct title depending on whether it was opened from the
Refresh or Clear action.

Also bumps obdMetricVersion to 11.26.1-SNAPSHOT to pick up the
multi-module DTC equality fix from obd-metrics.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…r flow

The module picker's confirm button always read "Scan" regardless of
which action opened it, so clearing DTCs showed a "Scan" button that
didn't actually scan or clear anything - the real clear confirmation
comes up in a follow-on dialog. The button label is now passed in
per-flow ("Scan" for Refresh, "Continue" for Clear).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…out, add Scan description

The Clear-DTC flow required accepting two separate dialogs in a row
(module picker, then a plain confirmation dialog). Both are now folded
into a single dialog: the picker's custom view carries the warning
message above the checklist, and its confirm button performs the
clear directly. A plain AlertDialog can't combine setMessage() with
setMultiChoiceItems() (the platform only wires in the list when no
message is set), so the dialog's content is now a custom view, and the
three action buttons are laid out in a manual horizontal LinearLayout
instead of the platform's button bar, which was auto-stacking them
vertically once their combined text no longer fit on one line.

Also:
- The confirm button (Scan / Clear Codes) uses the project's
  rainbow_indigo accent color, dimming via ColorStateList when
  disabled (no modules selected) rather than staying falsely bright.
- The Scan dialog now shows a short description above its checklist,
  mirroring the Clear dialog's warning.
- Added confirmWhenEmpty so only the destructive Clear flow forces a
  dialog when no DRI modules are configured; Scan keeps skipping
  straight through to avoid an empty, pointless dialog for the common
  single-ECU case.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@tzebrowski
tzebrowski merged commit b96d20b into master Aug 12, 2026
1 check passed
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