android(fix): parse and send hearing aid data properly #286
+73
−106
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.ktandUpdateHearingTestScreen.ktfiles. 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
eqstate into separateleftEQandrightEQstates, 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
AACPManager, streamlining the state management and initialization logic. [1] [2] [3] [4] [5] [6]Improved State Management for UI Controls
UI and Theming Enhancements
TextStyleusage for better readability and maintainability.Cleanup of Legacy Hearing Aid Enable Logic
AACPManager, further simplifying the codebase. [1] [2]These changes collectively enhance the modularity and clarity of hearing aid settings management in the app.