Skip to content

Commit

Permalink
poc
Browse files Browse the repository at this point in the history
  • Loading branch information
abonnaudet-ledger committed May 17, 2024
1 parent 4c0afc2 commit f2cbb60
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib_nbgl/src/nbgl_layout.c
Original file line number Diff line number Diff line change
Expand Up @@ -2817,7 +2817,7 @@ int nbgl_layoutAddExtendedFooter(nbgl_layout_t *layout, const nbgl_layoutFooter_
default:
return -2;
}
#ifndef TARGET_STAX
#if 1
// add swipable feature for navigation
if ((footerDesc->type == FOOTER_NAV) || (footerDesc->type == FOOTER_TEXT_AND_NAV)) {
addSwipeInternal(layoutInt,
Expand Down
2 changes: 1 addition & 1 deletion lib_nbgl/src/nbgl_page.c
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ nbgl_page_t *nbgl_pageDrawGenericContentExt(nbgl_layoutTouchCallback_t onA
footerDesc.navigation.tuneId = nav->tuneId;
}
else {
footerDesc.type = FOOTER_TEXT_AND_NAV;
footerDesc.type = FOOTER_NAV;
footerDesc.textAndNav.text = nav->navWithButtons.quitText;
footerDesc.textAndNav.tuneId = nav->tuneId;
footerDesc.textAndNav.token = nav->quitToken;
Expand Down
5 changes: 3 additions & 2 deletions lib_nbgl/src/nbgl_use_case.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,12 +336,13 @@ static void prepareNavInfo(bool isReview, uint8_t nbPages, const char *rejectTex
}
else {
navInfo.quitToken = REJECT_TOKEN;
#ifdef TARGET_STAX
// #ifdef TARGET_STAX
#if 0
navInfo.navType = NAV_WITH_TAP;
navInfo.navWithTap.nextPageToken = NEXT_TOKEN;
navInfo.navWithTap.quitText = rejectText;
navInfo.navWithTap.backToken = BACK_TOKEN;
#else // TARGET_STAX
#else // TARGET_STAX
UNUSED(rejectText);
navInfo.navType = NAV_WITH_BUTTONS;
navInfo.navWithButtons.quitText = "Reject";
Expand Down

0 comments on commit f2cbb60

Please sign in to comment.