https://bugs.kde.org/show_bug.cgi?id=434291

Albert Vaca Cintora <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|                            |https://invent.kde.org/netw
                   |                            |ork/kdeconnect-android/-/co
                   |                            |mmit/fe8a3c9ea30b2c6983aa90
                   |                            |2f5b8c1507cba9d613
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED

--- Comment #5 from Albert Vaca Cintora <[email protected]> ---
Git commit fe8a3c9ea30b2c6983aa902f5b8c1507cba9d613 by Albert Vaca Cintora, on
behalf of Erik Duisters.
Committed on 24/01/2026 at 09:34.
Pushed by albertvaka into branch 'master'.

Fix battery level being incorrect when sending a THRESHOLD_EVENT_BATTERY_LOW
event

Because ACTION_BATTERY_LOW intents do not have extras we were sending the
previous battery charge level when sending a THRESHOLD_EVENT_BATTERY_LOW event
to the desktop resulting in a "Low Battery" notification being show with an
incorrect charge level.

This seems to be a change in Android behavior since API 26: they now first send
ACTION_BATTERY_LOW and then ACTION_BATTERY_CHANGED, when it used to be the
other way around.

M  +25   -20   src/org/kde/kdeconnect/Plugins/BatteryPlugin/BatteryPlugin.kt
M  +92   -45   tests/org/kde/kdeconnect/Plugin/BatteryPluginTest.kt

https://invent.kde.org/network/kdeconnect-android/-/commit/fe8a3c9ea30b2c6983aa902f5b8c1507cba9d613

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to