Skip to content

Commit

Permalink
search activity: fix history item click not working
Browse files Browse the repository at this point in the history
  • Loading branch information
xfangfang committed Jan 31, 2025
1 parent e04bfa1 commit c117afe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wiliwili/source/activity/search_activity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ SearchActivity::SearchActivity(const std::string& key) {

void SearchActivity::onContentAvailable() {
brls::Logger::debug("SearchActivity: onContentAvailable");
this->requestSearch(SearchActivity::currentKey);

this->registerAction(
"wiliwili/search/tab"_i18n, brls::ControllerButton::BUTTON_Y, [this](brls::View* view) -> bool {
Expand All @@ -42,6 +41,8 @@ void SearchActivity::onContentAvailable() {
this->getUpdateSearchEvent()->subscribe([this](const std::string& s) { this->search(s); });
this->searchTab->getSearchHotsTab()->setSearchCallback(&updateSearchEvent);
this->searchTab->getSearchHistoryTab()->setSearchCallback(&updateSearchEvent);

this->requestSearch(SearchActivity::currentKey);
}

void SearchActivity::search(const std::string& key) {
Expand Down

0 comments on commit c117afe

Please sign in to comment.