fix(linux-rust): Clear stale tray battery on device switch#447
fix(linux-rust): Clear stale tray battery on device switch#447Ryder-C wants to merge 1 commit intokavishdevar:linux/rustfrom
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the
✨ Finishing touches🧪 Generate unit tests (beta)
Important Action Needed: IP Allowlist UpdateIf your organization protects your Git platform with IP whitelisting, please add the new CodeRabbit IP address to your allowlist:
Reviews will stop working after February 8, 2026 if the new IP is not added to your allowlist. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.