|
@@ -15,10 +15,11 @@ void passy_scene_doe_input_on_enter(void* context) {
|
|
|
// Setup view
|
|
// Setup view
|
|
|
TextInput* text_input = passy->text_input;
|
|
TextInput* text_input = passy->text_input;
|
|
|
|
|
|
|
|
- // TODO: reload from saved data
|
|
|
|
|
-
|
|
|
|
|
text_input_set_header_text(text_input, "DoE: YYMMDD");
|
|
text_input_set_header_text(text_input, "DoE: YYMMDD");
|
|
|
text_input_set_minimum_length(text_input, 6);
|
|
text_input_set_minimum_length(text_input, 6);
|
|
|
|
|
+ if(passy->date_of_expiry[0] != '\0') {
|
|
|
|
|
+ strlcpy(passy->text_store, passy->date_of_expiry, sizeof(passy->text_store));
|
|
|
|
|
+ }
|
|
|
text_input_set_result_callback(
|
|
text_input_set_result_callback(
|
|
|
text_input,
|
|
text_input,
|
|
|
passy_scene_doe_input_text_input_callback,
|
|
passy_scene_doe_input_text_input_callback,
|