mirror of
https://github.com/LNH-team/pico-launcher.git
synced 2026-06-02 00:56:55 +02:00
Add touch input support, add fast scrolling support for coverflow display mode, fix use after free bug in banner list mode
This commit is contained in:
@@ -11,8 +11,14 @@ u32 FileRecyclerAdapter::GetItemCount() const
|
||||
void FileRecyclerAdapter::BindView(SharedPtr<View> view, int index) const
|
||||
{
|
||||
LOG_DEBUG("Binding %d\n", index);
|
||||
_taskQueue->Enqueue([=, this] (const vu8& cancelRequested)
|
||||
auto queueTask = _taskQueue->Enqueue([=, this] (const vu8& cancelRequested)
|
||||
{
|
||||
if (cancelRequested)
|
||||
{
|
||||
LOG_DEBUG("Task to load %d was canceled\n", index);
|
||||
return TaskResult<void>::Canceled();
|
||||
}
|
||||
|
||||
LOG_DEBUG("Started task to load %d\n", index);
|
||||
_fileInfoManager->LoadFileInfo(index);
|
||||
auto internalFileInfo = _fileInfoManager->GetInternalFileInfo(index);
|
||||
@@ -23,4 +29,5 @@ void FileRecyclerAdapter::BindView(SharedPtr<View> view, int index) const
|
||||
}
|
||||
return BindView(view, index, internalFileInfo, cancelRequested);
|
||||
});
|
||||
SetQueueTask(view, std::move(queueTask));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user