diff --git a/Aerial/Source/Models/Time/TimeManagement.swift b/Aerial/Source/Models/Time/TimeManagement.swift index c09a0e70..21bb31d8 100644 --- a/Aerial/Source/Models/Time/TimeManagement.swift +++ b/Aerial/Source/Models/Time/TimeManagement.swift @@ -393,7 +393,7 @@ final class TimeManagement: NSObject { // MARK: - Battery detection func isOnBattery() -> Bool { - return IOPSGetTimeRemainingEstimate() != -2.0 + return IOPSGetTimeRemainingEstimate() != kIOPSTimeRemainingUnlimited } func isBatteryLow() -> Bool {