File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1137,6 +1137,7 @@ nbgl_layout_t *nbgl_layoutGet(const nbgl_layoutDescription_t *description)
1137
1137
// if a tap text is defined, make the container tapable and display this text in gray
1138
1138
if (description -> tapActionText != NULL ) {
1139
1139
layoutObj_t * obj ;
1140
+ const char * tapActionText = PIC (description -> tapActionText );
1140
1141
1141
1142
obj = & layout -> callbackObjPool [layout -> nbUsedCallbackObjs ];
1142
1143
layout -> nbUsedCallbackObjs ++ ;
@@ -1146,10 +1147,10 @@ nbgl_layout_t *nbgl_layoutGet(const nbgl_layoutDescription_t *description)
1146
1147
layout -> container -> obj .touchMask = (1 << TOUCHED );
1147
1148
layout -> container -> obj .touchId = WHOLE_SCREEN_ID ;
1148
1149
1149
- if (strlen (description -> tapActionText ) > 0 ) {
1150
+ if (strlen (tapActionText ) > 0 ) {
1150
1151
nbgl_layoutUpFooter_t footerDesc ;
1151
1152
footerDesc .type = UP_FOOTER_TEXT ;
1152
- footerDesc .text .text = PIC ( description -> tapActionText ) ;
1153
+ footerDesc .text .text = tapActionText ;
1153
1154
footerDesc .text .token = description -> tapActionToken ;
1154
1155
footerDesc .text .tuneId = description -> tapTuneId ;
1155
1156
nbgl_layoutAddUpFooter ((nbgl_layout_t * ) layout , & footerDesc );
You can’t perform that action at this time.
0 commit comments