mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-30 21:55:10 +00:00
Fixed battery plugin
This commit is contained in:
@@ -85,9 +85,9 @@ public class BatteryPlugin extends Plugin {
|
||||
int thresholdEvent = lowBattery? THRESHOLD_EVENT_BATTERY_LOW : THRESHOLD_EVENT_NONE;
|
||||
|
||||
if (lastInfo != null
|
||||
&& isCharging != lastInfo.getBoolean("isCharging")
|
||||
&& currentCharge != lastInfo.getInt("currentCharge")
|
||||
&& thresholdEvent != lastInfo.getInt("thresholdEvent")
|
||||
&& isCharging == lastInfo.getBoolean("isCharging")
|
||||
&& currentCharge == lastInfo.getInt("currentCharge")
|
||||
&& thresholdEvent == lastInfo.getInt("thresholdEvent")
|
||||
) {
|
||||
|
||||
//Do not send again if nothing has changed
|
||||
|
Reference in New Issue
Block a user