mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-04 13:17:08 -04:00
[EGD-2392] SMS Feed window added
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
#include "Application.hpp"
|
||||
|
||||
#include "../MessagesStyle.hpp"
|
||||
#include "../windows/ThreadViewWindow.hpp" // for name of window
|
||||
|
||||
#include "service-db/api/DBServiceAPI.hpp"
|
||||
ThreadModel::ThreadModel(app::Application *app) :
|
||||
@@ -55,11 +56,19 @@ gui::ListItem* ThreadModel::getItem(int index, int fistElement, int prevElement,
|
||||
if (item != nullptr) {
|
||||
item->setThreadItem(thread);
|
||||
item->setID(index);
|
||||
item->activatedCallback = [=](gui::Item &item) {
|
||||
LOG_INFO("ThreadItem ActivatedCallback");
|
||||
return true;
|
||||
};
|
||||
return item;
|
||||
}
|
||||
item->activatedCallback = [=](gui::Item &item) {
|
||||
LOG_INFO("ThreadItem ActivatedCallback");
|
||||
if (application)
|
||||
{
|
||||
application->switchWindow(gui::name::window::thread_view, nullptr);
|
||||
}
|
||||
else
|
||||
{
|
||||
LOG_ERROR("No application!");
|
||||
}
|
||||
return true;
|
||||
};
|
||||
return item;
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user