activate screensaver on ClearSession message

pull/25/head
Pavol Rusnak 9 years ago
parent ea7e92f5dd
commit 1501ca2f67

@ -448,6 +448,7 @@ void fsm_msgClearSession(ClearSession *msg)
{
(void)msg;
session_clear(true); // clear PIN as well
layoutScreensaver();
fsm_sendSuccess("Session cleared");
}

@ -49,14 +49,21 @@ void layoutProgressSwipe(const char *desc, int permil)
layoutProgress(desc, permil);
}
void layoutScreensaver(void)
{
layoutLast = layoutScreensaver;
oledClear();
oledRefresh();
}
void layoutHome(void)
{
if (layoutLast == layoutHome) {
if (layoutLast == layoutHome || layoutLast == layoutScreensaver) {
oledClear();
} else {
layoutLast = layoutHome;
oledSwipeLeft();
}
layoutLast = layoutHome;
const char *label = storage_getLabel();
const uint8_t *homescreen = storage_getHomescreen();
if (homescreen) {

@ -26,6 +26,7 @@
void layoutDialogSwipe(LayoutDialogIcon icon, const char *btnNo, const char *btnYes, const char *desc, const char *line1, const char *line2, const char *line3, const char *line4, const char *line5, const char *line6);
void layoutProgressSwipe(const char *desc, int permil);
void layoutScreensaver(void);
void layoutHome(void);
void layoutConfirmOutput(const CoinType *coin, const TxOutputType *out);
void layoutConfirmTx(const CoinType *coin, uint64_t amount_out, uint64_t amount_fee);

Loading…
Cancel
Save