From 4c4dd4b33d294fab2262b8108ff83339efdfbe10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Tue, 23 May 2017 15:58:54 +0200 Subject: [PATCH] [apps] Set the backlight brightness at maximum when plugging the USB Change-Id: If544eaa5b34fecc1117beb82909f1f5c8a82760f --- apps/usb_timer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/usb_timer.cpp b/apps/usb_timer.cpp index 123f43959..d14fa8965 100644 --- a/apps/usb_timer.cpp +++ b/apps/usb_timer.cpp @@ -20,6 +20,9 @@ bool USBTimer::fire() { KDColor LEDColor = Ion::Battery::isCharging() ? KDColorYellow : KDColorGreen; Ion::LED::setColor(LEDColor); #endif + if (!m_previousPluggedState) { + Ion::Backlight::setBrightness(Ion::Backlight::MaxBrightness); + } m_previousPluggedState = true; } else { if (m_previousPluggedState) {