LightSettingsDialog: add bundle extras for preview color and duration
The sdk now accepts an abstract way to force preview values.
Change-Id: I8ca686ab455e19b928b277585c46099c3ac6daf9
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
diff --git a/src/org/lineageos/lineageparts/notificationlight/LightSettingsDialog.java b/src/org/lineageos/lineageparts/notificationlight/LightSettingsDialog.java
index ba6c6b8..6f2217f 100644
--- a/src/org/lineageos/lineageparts/notificationlight/LightSettingsDialog.java
+++ b/src/org/lineageos/lineageparts/notificationlight/LightSettingsDialog.java
@@ -318,6 +318,9 @@
if (mLedBrightness > 0 && mLedBrightness < LedValues.LIGHT_BRIGHTNESS_MAXIMUM) {
b.putInt(LineageNotification.EXTRA_FORCE_LIGHT_BRIGHTNESS, mLedBrightness);
}
+ b.putInt(LineageNotification.EXTRA_FORCE_COLOR, color);
+ b.putInt(LineageNotification.EXTRA_FORCE_LIGHT_ON_MS, speedOn);
+ b.putInt(LineageNotification.EXTRA_FORCE_LIGHT_OFF_MS, speedOff);
createNotificationChannel();