Skip to content

Conversation

@kavishdevar
Copy link
Owner

@kavishdevar kavishdevar commented Nov 19, 2025

By copying the transparency customizations code to hearing aid settings, I overwrote the same eq (loss data) for both pods. And, by ATT didn't work, it would use the EQ from AACP, which was actually not linked to the hearing loss data at all.


ai gen'd sumamry:

This pull request refactors how hearing aid settings are managed in both the HearingAidAdjustmentsScreen.kt and UpdateHearingTestScreen.kt files. The main changes involve splitting the equalizer (EQ) state into separate left and right channels, removing unused phone/media EQ code, and improving the way UI state is handled for hearing aid configuration. These updates make the codebase more modular, easier to maintain, and ensure that individual hearing aid parameters are tracked and updated correctly.

Hearing Aid EQ State Refactoring

  • Split the single eq state into separate leftEQ and rightEQ states, updating all references to use these new variables for more accurate per-ear adjustments. [1] [2] [3] [4] [5] [6] [7] [8] [9]

Removal of Unused and Redundant Code

  • Removed all phone/media EQ state and related toggles, as well as legacy code for reading EQ data from the AACPManager, streamlining the state management and initialization logic. [1] [2] [3] [4] [5] [6]

Improved State Management for UI Controls

  • Added dedicated state variables for tone, ambient noise reduction, own voice amplification, and per-ear amplification, ensuring that these parameters are independently tracked and updated in the UI. [1] [2] [3] [4]

UI and Theming Enhancements

  • Updated UI code to use dynamic text color based on the system theme and refactored TextStyle usage for better readability and maintainability.

Cleanup of Legacy Hearing Aid Enable Logic

  • Removed legacy logic related to hearing aid enablement and listeners that were previously tied to the AACPManager, further simplifying the codebase. [1] [2]

These changes collectively enhance the modularity and clarity of hearing aid settings management in the app.

@kavishdevar kavishdevar merged commit de82cdd into main Nov 22, 2025
2 checks passed
@kavishdevar kavishdevar deleted the android/fix/hearing-aid branch November 24, 2025 09:29
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