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

Commit 812c56b0 authored by Romain Hunault's avatar Romain Hunault 💻
Browse files

Merge remote-tracking branch 'origin/lineage-15.1' into v1-oreo

parents 081ac6dd 36890a74
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -5052,10 +5052,16 @@ public class NotificationManagerService extends SystemService {
            mNotificationLight.turnOff();
        } else {
            mNotificationLight.setModes(ledValues.getBrightness());

            // we are using 1:0 to indicate LED should stay always on
            if (ledValues.getOnMs() == 1 && ledValues.getOffMs() == 0) {
                mNotificationLight.setColor(ledValues.getColor());
            } else {
                mNotificationLight.setFlashing(ledValues.getColor(), Light.LIGHT_FLASH_TIMED,
                        ledValues.getOnMs(), ledValues.getOffMs());
            }
        }
    }

    private boolean isLedForcedOn(NotificationRecord nr) {
        return nr != null ?