This commit provides the flowing fixes in display light functionality:
- Settings-path bug causing lack of display light settings on "fresh"
image. Solved with proper paths definition
- Invalid settings after phone restart. Solved with proper handling
of enums and booleans on the Event manager side.
- No turning off light just after turning on light functionality with
manual brightness setting in ApplicationSettings bug (required
another key press to start timer that turns off the light after 5s).
Solved by starting timer explicitly on Action::turnOn
- No turning off light just after turning on the phone bug (required
--as above --). Solved by starting timer explicitly on `Settings
ValueChange` callback with Action::turnOn.
- No autoMode until user entered `AppSettings::DisplayLight` Window.
Bug caused by curve parameters being provided by the window rather
than on the functionality back-end initialization.
Commit also provides some code cleanup
Added enabling screen light if there was any key pressed
and screen light controler is in the automatic mode.
Added screen light disabling after 5 seconds of timeout
without any key being pressed.
Added Gui timer auto refresh window on count and additional
name based API to detach timer from window. Added
TimerIDGenerator and exception throw on creating user timer
with same name.
Added new OnPageElement listView rebuild type. Created new
options refresh. Refactored DisplayLight Setting. BarGraph rector.
Added step render limit for small radius arcs.
Due to vfs deprecation there is need to remove all vfs calls from code. This PR covers module gui. There are some modifications in other modules included which are necessary because of build system issues.
Change filename of internationalization files from i18 to i18n.
I18n should stand for internationalization, not i18. That's why I changed in 'module-utils' name of the folder 'i18' and both .cpp and .hpp files to 'i18n'.