Переглянути джерело

NFC Maker: Fix system textinput being overridden

Willy-JL 11 місяців тому
батько
коміт
4bf7d6c961
2 змінених файлів з 4 додано та 0 видалено
  1. 2 0
      nfc_maker/dropin/text_input.c
  2. 2 0
      nfc_maker/dropin/text_input.h

+ 2 - 0
nfc_maker/dropin/text_input.c

@@ -1,3 +1,4 @@
+#ifndef FW_ORIGIN_Momentum
 #include "text_input.h"
 #include <gui/elements.h>
 #if __has_include(<assets_icons.h>)
@@ -804,3 +805,4 @@ void text_input_set_header_text(TextInput* text_input, const char* text) {
     furi_check(text_input);
     with_view_model(text_input->view, TextInputModel * model, { model->header = text; }, true);
 }
+#endif

+ 2 - 0
nfc_maker/dropin/text_input.h

@@ -5,6 +5,7 @@
 
 #pragma once
 
+#ifndef FW_ORIGIN_Momentum
 #include <gui/view.h>
 #include <gui/modules/validators.h>
 
@@ -98,3 +99,4 @@ void text_input_set_header_text(TextInput* text_input, const char* text);
 #ifdef __cplusplus
 }
 #endif
+#endif