diff --git a/firmware/application/ais_app.cpp b/firmware/application/ais_app.cpp index 28b2b908..872b986c 100644 --- a/firmware/application/ais_app.cpp +++ b/firmware/application/ais_app.cpp @@ -299,7 +299,7 @@ bool AISRecentEntriesView::on_key(const ui::KeyEvent event) { return false; } -static void ais_list_item_draw( +void AISRecentEntriesView::draw( const AISRecentEntry& entry, const Rect& target_rect, Painter& painter, @@ -336,7 +336,7 @@ void AISRecentEntriesView::paint(Painter& painter) { for(auto p = range.first; p != range.second; p++) { const auto& entry = *p; const auto is_selected_key = (selected_key == entry.key()); - ais_list_item_draw(entry, target_rect, painter, s, (has_focus() && is_selected_key)); + draw(entry, target_rect, painter, s, (has_focus() && is_selected_key)); target_rect.pos.y += target_rect.height(); } } diff --git a/firmware/application/ais_app.hpp b/firmware/application/ais_app.hpp index c3973c0e..9a558942 100644 --- a/firmware/application/ais_app.hpp +++ b/firmware/application/ais_app.hpp @@ -151,6 +151,14 @@ private: const EntryKey invalid_key = 0xffffffff; void advance(const int32_t amount); + + void draw( + const AISRecentEntry& entry, + const Rect& target_rect, + Painter& painter, + const Style& style, + const bool is_selected + ); }; class AISRecentEntryDetailView : public View {