mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-04-24 23:55:52 +03:00
[PR #447] [MERGED] fix(linux-rust): Clear stale tray battery on device switch #402
Labels
No labels
android
bug
documentation
enhancement
good first issue
help wanted
linux
pull-request
reverse-engineering
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librepods#402
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/kavishdevar/librepods/pull/447
Author: @Ryder-C
Created: 2/4/2026
Status: ✅ Merged
Merged: 2/10/2026
Merged by: @kavishdevar
Base:
linux/rust← Head:fix/tray-stale-battery📝 Commits (1)
2f14d74fix(linux-rust): Clear stale tray battery on device switch📊 Changes
1 file changed (+11 additions, -1 deletions)
View changed files
📝
linux-rust/src/devices/airpods.rs(+11 -1)📄 Description
Problem
When switching from Airpods Max to Airpods (or vice versa), the tray displays battery data from the previous device. Airpods populates
battery_l,battery_r,battery_cwhile Airpods Max populatesbattery_headphone, the old fields are never cleared so the tray icon doesn't update.Fix
Reset all battery fields to
Nonewhen a new device connects, so only the active device's data is shown.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.