Skip to content

fix(android): skip adaptive mode for models without it - #956

Open
BUR4KBEY wants to merge 1 commit into
librepods-org:mainfrom
BUR4KBEY:fix/qs-skip-unsupported-adaptive
Open

BUR4KBEY wants to merge 1 commit into
librepods-org:mainfrom
BUR4KBEY:fix/qs-skip-unsupported-adaptive

Conversation

@BUR4KBEY

@BUR4KBEY BUR4KBEY commented Nov 30, 2026 •

Copy link
Copy Markdown

With AirPods Pro (1st gen), the quick settings tile gets stuck on Transparency. The tile cycles Off → Transparency → Adaptive → Noise Cancellation, but these AirPods have no Adaptive mode and ignore the switch (listening mode 0d 04), so every tap sends Adaptive again and the tile never reaches Noise Cancellation.

The tile and the quick settings dialog now offer Adaptive only when the connected model has Capability.ADAPTIVE_AUDIO. Unknown models keep it. Models with listening modes that lack Adaptive (today only AirPods Pro 1) now cycle Off → Transparency → Noise Cancellation; models without listening modes at all just lose an option they never had.

Not covered: the in-app listening mode selector (NoiseControlSettings.kt) still shows Adaptive. Its Apple-style slider hard-codes button positions, so hiding a mode there needs a larger change; happy to follow up if you want it.

Tested on a Galaxy S25 (Android 17, One UI 9) with AirPods Pro 1st gen (A2084): the tile now cycles Off → Transparency → Noise Cancellation and no longer sticks on Transparency. Only that device was tested. The quick settings dialog gets the same filter but is not reachable right now (the tile always cycles), so it was not tested on a device. ./gradlew :app:assembleFossDebug builds.

If you want to try it without building: a signed FOSS release APK of v1.0.4 plus this fix is at https://github.com/BUR4KBEY/librepods/releases/tag/v1.0.4-fork.1 (signed with my own key, so it needs an uninstall of the official app first).

Refs #769

Reviewed with Claude Fable 5.2. Created with Claude Opus 5.5 in T3 Code.

AirPods Pro (1st gen) have no Adaptive listening mode and ignore the
switch command, so the quick settings tile stuck on Transparency and
resent Adaptive on every tap. The tile and the quick settings dialog
now offer Adaptive only when the connected model supports it; unknown
models keep it.

Refs librepods-org#769
@BUR4KBEY
BUR4KBEY force-pushed the fix/qs-skip-unsupported-adaptive branch from df729e8 to 74333c6 Compare November 30, 2026 21:55
@BUR4KBEY
BUR4KBEY marked this pull request as ready for review November 30, 2026 21:55
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