mirror of
https://github.com/d4rken-org/capod.git
synced 2026-09-14 18:26:11 -04:00
fix: Hide stale cached battery indicator when AAP is connected
This commit is contained in:
@@ -193,7 +193,7 @@ fun DualPodsCard(
|
||||
}
|
||||
|
||||
// Cached battery indicator
|
||||
if (device.isBatteryCached) {
|
||||
if (device.isBatteryCached && !device.isAapReady) {
|
||||
Spacer(modifier = Modifier.height(4.dp))
|
||||
Text(
|
||||
text = stringResource(R.string.battery_cached_label, device.cachedBatteryFormatted(now)),
|
||||
|
||||
@@ -218,7 +218,7 @@ fun SinglePodsCard(
|
||||
}
|
||||
|
||||
// Cached battery indicator
|
||||
if (device.isBatteryCached) {
|
||||
if (device.isBatteryCached && !device.isAapReady) {
|
||||
Spacer(modifier = Modifier.height(4.dp))
|
||||
Text(
|
||||
text = stringResource(R.string.battery_cached_label, device.cachedBatteryFormatted(now)),
|
||||
|
||||
Reference in New Issue
Block a user