[PR #24] [MERGED] Show last saved battery in notification #238

Closed
opened 2026-03-02 12:04:43 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/kavishdevar/librepods/pull/24
Author: @kavishdevar
Created: 1/7/2025
Status: Merged
Merged: 1/7/2025
Merged by: @kavishdevar

Base: mainHead: last-saved-battery


📝 Commits (1)

📊 Changes

2 files changed (+24 additions, -24 deletions)

View changed files

📝 android/app/src/main/java/me/kavishdevar/aln/BatteryWidget.kt (+12 -12)
📝 android/app/src/main/java/me/kavishdevar/aln/services/AirPodsService.kt (+12 -12)

📄 Description

Update AirPodsService.kt and BatteryWidget.kt to retain and display the last received battery levels when the case or bud gets disconnected.

  • AirPodsService.kt

    • Comment out the condition that sets battery levels to an empty string if the status is BatteryStatus.DISCONNECTED.
  • BatteryWidget.kt

    • Comment out the condition that sets battery levels to an empty string if the status is BatteryStatus.DISCONNECTED.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/kavishdevar/librepods/pull/24 **Author:** [@kavishdevar](https://github.com/kavishdevar) **Created:** 1/7/2025 **Status:** ✅ Merged **Merged:** 1/7/2025 **Merged by:** [@kavishdevar](https://github.com/kavishdevar) **Base:** `main` ← **Head:** `last-saved-battery` --- ### 📝 Commits (1) - [`039a43d`](https://github.com/kavishdevar/librepods/commit/039a43d15d3b8ea792305488112e52ee753162ff) Untitled ### 📊 Changes **2 files changed** (+24 additions, -24 deletions) <details> <summary>View changed files</summary> 📝 `android/app/src/main/java/me/kavishdevar/aln/BatteryWidget.kt` (+12 -12) 📝 `android/app/src/main/java/me/kavishdevar/aln/services/AirPodsService.kt` (+12 -12) </details> ### 📄 Description Update `AirPodsService.kt` and `BatteryWidget.kt` to retain and display the last received battery levels when the case or bud gets disconnected. * **AirPodsService.kt** - Comment out the condition that sets battery levels to an empty string if the status is `BatteryStatus.DISCONNECTED`. * **BatteryWidget.kt** - Comment out the condition that sets battery levels to an empty string if the status is `BatteryStatus.DISCONNECTED`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 12:04:43 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librepods#238
No description provided.