diff --git a/parts/src/org/lineageos/settings/popupcamera/Constants.java b/parts/src/org/lineageos/settings/popupcamera/Constants.java index 07946d6..8ee1cf2 100644 --- a/parts/src/org/lineageos/settings/popupcamera/Constants.java +++ b/parts/src/org/lineageos/settings/popupcamera/Constants.java @@ -32,7 +32,7 @@ public class Constants { public static final String OPEN_CAMERA_STATE = "1"; public static final String FRONT_CAMERA_ID = "1"; - public static final String BLUE_LED_PATH = "/sys/class/leds/blue/brightness"; - public static final String GREEN_LED_PATH = "/sys/class/leds/green/brightness"; + public static final String LEFT_LED_PATH = "/sys/class/leds/left/brightness"; + public static final String RIGHT_LED_PATH = "/sys/class/leds/right/brightness"; public static final String POPUP_SOUND_PATH = "/system/media/audio/ui/"; } diff --git a/parts/src/org/lineageos/settings/popupcamera/PopupCameraService.java b/parts/src/org/lineageos/settings/popupcamera/PopupCameraService.java index 7b50adf..1d521e3 100644 --- a/parts/src/org/lineageos/settings/popupcamera/PopupCameraService.java +++ b/parts/src/org/lineageos/settings/popupcamera/PopupCameraService.java @@ -210,12 +210,12 @@ public class PopupCameraService extends Service implements Handler.Callback { private void lightUp() { if (mPopupCameraPreferences.isLedAllowed()) { - FileUtils.writeLine(Constants.GREEN_LED_PATH, "255"); - FileUtils.writeLine(Constants.BLUE_LED_PATH, "255"); + FileUtils.writeLine(Constants.LEFT_LED_PATH, "255"); + FileUtils.writeLine(Constants.RIGHT_LED_PATH, "255"); mHandler.postDelayed(() -> { - FileUtils.writeLine(Constants.GREEN_LED_PATH, "0"); - FileUtils.writeLine(Constants.BLUE_LED_PATH, "0"); + FileUtils.writeLine(Constants.LEFT_LED_PATH, "0"); + FileUtils.writeLine(Constants.RIGHT_LED_PATH, "0"); }, 1200); } }