Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5076d46c authored by Jorge Ruesga's avatar Jorge Ruesga
Browse files

quiethours: inclusive start hour



If quiethours is defined to start at 01:00 it should start at 01:00 not at 01:01

Change-Id: I0d0fe35a9235fb4bb04794e94f7678ee137d9be7
Signed-off-by: default avatarJorge Ruesga <jorge@ruesga.com>
parent 6a7eb48b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -55,10 +55,10 @@ public class QuietHoursUtils {

            if (quietHoursEnd < quietHoursStart) {
                // Starts at night, ends in the morning.
                return (minutes > quietHoursStart) || (minutes < quietHoursEnd);
                return (minutes >= quietHoursStart) || (minutes < quietHoursEnd);
            } else {
                // Starts in the morning, ends at night.
                return (minutes > quietHoursStart) && (minutes < quietHoursEnd);
                return (minutes >= quietHoursStart) && (minutes < quietHoursEnd);
            }
        }
        return false;