return navigateToSuperMenu;
}
+/**
+ * TODO:
+ * Items that which ultimately lead to menu replacement shouldn't have RepetitionPolicy::multiple,
+ * this issue will be addressed in different patch
+ */
+
MenuBuilderImplementation::MenuBuilderImplementation()
{
const std::string defaultImg = ICONS_DIR "/tizen.png";
RowScannerImpl::~RowScannerImpl()
{
stopScanning();
- eraseFrame();
}
void RowScannerImpl::boxMoved(Rectangle dimensions, NavigationInterface::BoxPositionMode mode)
}
DEBUG("Single element row");
Singleton<UniversalSwitch>::instance().getNavigationInterface()->nextElementInRow();
- // continue as case ITEMS
+ break;
case State::ITEMS:
- state = State::END;
- playFeedback();
- DEBUG("Scanning complete");
break;
case State::END:
state = State::ITEMS;
DEBUG("Scanning complete");
auto elem = Singleton<UniversalSwitch>::instance().getNavigationInterface()->getCurrentElement();
stopScanning();
- if (!elem) callback({});
- else callback(std::make_shared<UIElement>(std::move(elem)));
- return;
+ callback(elem ? std::make_shared<UIElement>(std::move(elem)) : Optional<std::shared_ptr<UIElement>>());
}
void RowScannerImpl::next()
void RowScannerImpl::stopScanning()
{
timer.reset();
+ eraseFrame();
}
bool RowScannerImpl::tryResetState()