Widget: Fix layout for devices with single charge detection

The instance check was being done on the wrong value, so it was never `true`.
This commit is contained in:
darken
2025-11-09 15:03:04 +01:00
committed by Matthias Urhahn
parent 5860bbffb6
commit 4834eb276a
@@ -298,9 +298,10 @@ class WidgetProvider : AppWidgetProvider() {
if (podDevice is HasEarDetection && podDevice.isBeingWorn) View.VISIBLE else View.GONE
)
if (this is HasChargeDetectionDual) {
setViewVisibility(R.id.headphones_charging, if (isHeadsetBeingCharged) View.VISIBLE else View.GONE)
}
setViewVisibility(
R.id.headphones_charging,
if (podDevice is HasChargeDetectionDual && podDevice.isHeadsetBeingCharged) View.VISIBLE else View.GONE
)
}
companion object {