diff options
| author | Michele Bini <michele.bini@gmail.com> | 2022-03-24 11:52:51 (GMT) |
|---|---|---|
| committer | Michele Bini <michele.bini@gmail.com> | 2022-03-24 11:52:51 (GMT) |
| commit | e78a9401ac707fe75da54fdc6ce6c3aa89032360 (patch) | |
| tree | 7e078b0ca8a4f3222197d0e19a038bf4bc187a17 /src/displayapp/screens/PassKey.cpp | |
| parent | 3c29183dd22d33928ac62c65a378922d49fa06e9 (diff) | |
Disable bonding; Another try to disable secure pairing
Diffstat (limited to 'src/displayapp/screens/PassKey.cpp')
| -rw-r--r-- | src/displayapp/screens/PassKey.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/displayapp/screens/PassKey.cpp b/src/displayapp/screens/PassKey.cpp deleted file mode 100644 index 9e43a54..0000000 --- a/src/displayapp/screens/PassKey.cpp +++ /dev/null @@ -1,24 +0,0 @@ -#include "PassKey.h" -#include "displayapp/DisplayApp.h" - -using namespace Pinetime::Applications::Screens; - -PassKey::PassKey(Pinetime::Applications::DisplayApp* app, uint32_t key) : Screen(app) { - passkeyLabel = lv_label_create(lv_scr_act(), nullptr); - lv_obj_set_style_local_text_color(passkeyLabel, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, lv_color_hex(0xFFFF00)); - lv_obj_set_style_local_text_font(passkeyLabel, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, &jetbrains_mono_42); - lv_label_set_text_fmt(passkeyLabel, "%06u", key); - lv_obj_align(passkeyLabel, nullptr, LV_ALIGN_CENTER, 0, -20); - - backgroundLabel = lv_label_create(lv_scr_act(), nullptr); - lv_obj_set_click(backgroundLabel, true); - lv_label_set_long_mode(backgroundLabel, LV_LABEL_LONG_CROP); - lv_obj_set_size(backgroundLabel, 240, 240); - lv_obj_set_pos(backgroundLabel, 0, 0); - lv_label_set_text(backgroundLabel, ""); -} - -PassKey::~PassKey() { - lv_obj_clean(lv_scr_act()); -} - |
