#include "Logs/List/LogItem.h"
#include "Logs/Details/DetailsView.h"
+#include "App/AppControlRequest.h"
+
#include "Ui/Genlist.h"
#include "Ui/Menu.h"
#include "Ui/Navigator.h"
}
});
+ item->setSelectCallback([this, group]() {
+ const char *number = group->getLogList().back()->getNumber();
+ if (number) {
+ App::AppControl appControl = App::requestTelephonyCall(number);
+ appControl.launch(nullptr, nullptr, false);
+ appControl.detach();
+ }
+ });
+
item->setDetailsCallback([this](LogItem *item) {
getNavigator()->navigateTo(new DetailsView(item->getGroup()));
});