@@ -222,7 +222,7 @@ void dialog_ex_set_header(
222
222
dialog_ex -> view ,
223
223
DialogExModel * model ,
224
224
{
225
- furi_string_set (model -> header .text , text );
225
+ furi_string_set (model -> header .text , text ? text : "" );
226
226
model -> header .x = x ;
227
227
model -> header .y = y ;
228
228
model -> header .horizontal = horizontal ;
@@ -243,7 +243,7 @@ void dialog_ex_set_text(
243
243
dialog_ex -> view ,
244
244
DialogExModel * model ,
245
245
{
246
- furi_string_set (model -> text .text , text );
246
+ furi_string_set (model -> text .text , text ? text : "" );
247
247
model -> text .x = x ;
248
248
model -> text .y = y ;
249
249
model -> text .horizontal = horizontal ;
@@ -268,15 +268,18 @@ void dialog_ex_set_icon(DialogEx* dialog_ex, uint8_t x, uint8_t y, const Icon* i
268
268
void dialog_ex_set_left_button_text (DialogEx * dialog_ex , const char * text ) {
269
269
furi_check (dialog_ex );
270
270
with_view_model (
271
- dialog_ex -> view , DialogExModel * model , { furi_string_set (model -> left_text , text ); }, true);
271
+ dialog_ex -> view ,
272
+ DialogExModel * model ,
273
+ { furi_string_set (model -> left_text , text ? text : "" ); },
274
+ true);
272
275
}
273
276
274
277
void dialog_ex_set_center_button_text (DialogEx * dialog_ex , const char * text ) {
275
278
furi_check (dialog_ex );
276
279
with_view_model (
277
280
dialog_ex -> view ,
278
281
DialogExModel * model ,
279
- { furi_string_set (model -> center_text , text ); },
282
+ { furi_string_set (model -> center_text , text ? text : "" ); },
280
283
true);
281
284
}
282
285
@@ -285,7 +288,7 @@ void dialog_ex_set_right_button_text(DialogEx* dialog_ex, const char* text) {
285
288
with_view_model (
286
289
dialog_ex -> view ,
287
290
DialogExModel * model ,
288
- { furi_string_set (model -> right_text , text ); },
291
+ { furi_string_set (model -> right_text , text ? text : "" ); },
289
292
true);
290
293
}
291
294
0 commit comments