Skip to content

Commit 4895b47

Browse files
authored
fix(legacy): fix display issue (#142)
1 parent e35632d commit 4895b47

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

legacy/firmware/layout2.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4136,6 +4136,7 @@ bool layoutTransactionSign(const char *chain_name, uint64_t chain_id,
41364136
layoutButtonNoAdapter(NULL, &bmp_bottom_left_close);
41374137
layoutButtonYesAdapter(NULL, &bmp_bottom_right_confirm);
41384138
} else { // key*
4139+
layoutHeader(title);
41394140
if (index == (len > 0 ? 3 : 2)) {
41404141
oledDrawStringAdapter(0, y, key1, FONT_STANDARD);
41414142
oledDrawStringAdapter(0, y + 10, value1, FONT_STANDARD);

legacy/firmware/solana.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -137,26 +137,26 @@ void solana_sign_tx(const SolanaSignTx *msg, const HDNode *node,
137137
} else if (strcmp(title, "Owner") == 0) {
138138
continue;
139139
} else if (strcmp(title, "Sender") == 0) {
140-
title = "From:";
140+
title = "From";
141141
} else if (strcmp(title, "Recipient") == 0) {
142-
title = "Send to:";
142+
title = "Send to";
143143
} else if (strcmp(title, "Transfer tokens") == 0 ||
144144
strcmp(title, "Transfer") == 0) {
145-
title = "Amount:";
145+
title = "Amount";
146146
}
147147

148-
// char desc[64];
149-
// memset(desc, 0, sizeof(desc));
150-
// strcat(desc, title);
151-
// strcat(desc, ":");
148+
char desc[64];
149+
memset(desc, 0, sizeof(desc));
150+
strcat(desc, title);
151+
strcat(desc, ":");
152152

153153
steps_list[steps++] = i;
154154

155155
layoutDialogAdapterEx(
156156
tx_msg[0], &bmp_bottom_left_close, NULL,
157157
i < num_summary_steps - 1 ? &bmp_bottom_right_arrow
158158
: &bmp_bottom_right_confirm,
159-
NULL, NULL, gettext_from_en(title), text, NULL, NULL);
159+
NULL, NULL, gettext_from_en(desc), text, NULL, NULL);
160160

161161
uint8_t key;
162162
button_scan:

0 commit comments

Comments
 (0)