feat(sleep-screen): add sleep screen orientation setting (#1748)
Co-authored-by: Travis Davis <me@tdavis.dev>
This commit is contained in:
co-authored by
Travis Davis
parent
e8d7153d7f
commit
e3fb3bba37
@@ -22,11 +22,12 @@ void SleepActivity::onEnter() {
|
||||
if (APP_STATE.lastSleepFromReader) {
|
||||
ReaderUtils::applyOrientation(renderer, SETTINGS.orientation);
|
||||
GUI.drawPopup(renderer, tr(STR_ENTERING_SLEEP));
|
||||
renderer.setOrientation(GfxRenderer::Orientation::Portrait);
|
||||
} else {
|
||||
GUI.drawPopup(renderer, tr(STR_ENTERING_SLEEP));
|
||||
}
|
||||
|
||||
ReaderUtils::applyOrientation(renderer, SETTINGS.sleepScreenOrientation);
|
||||
|
||||
switch (SETTINGS.sleepScreen) {
|
||||
case (CrossPointSettings::SLEEP_SCREEN_MODE::BLANK):
|
||||
return renderBlankSleepScreen();
|
||||
|
||||
Reference in New Issue
Block a user