CInfoViewer: use different modes with enums for virtual zap and number input mode

This should fix missing rounded corners in numbaur input mode too.

Thx defans for input !


Origin commit data
------------------
Branch: ni/coolstream
Commit: 98b73c0d09
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-01-12 (Tue, 12 Jan 2016)



------------------
This commit was generated by Migit
This commit is contained in:
2016-01-12 19:46:08 +01:00
parent 46948c2d27
commit db6be29b3f
4 changed files with 37 additions and 14 deletions

View File

@@ -2135,6 +2135,7 @@ void CNeutrinoApp::quickZap(int msg)
void CNeutrinoApp::numericZap(int msg)
{
StopSubtitles();
g_InfoViewer->setSwitchMode(CInfoViewer::IV_MODE_NUMBER_ZAP);
int res = channelList->numericZap( msg );
StartSubtitles(res < 0);
if (res >= 0 && CRCInput::isNumeric(msg)) {
@@ -2771,7 +2772,7 @@ int CNeutrinoApp::handleMsg(const neutrino_msg_t _msg, neutrino_msg_data_t data)
}
/* ================================== KEYS ================================================ */
if( msg == CRCInput::RC_ok || (!g_InfoViewer->virtual_zap_mode && (msg == CRCInput::RC_sat || msg == CRCInput::RC_favorites))) {
if( msg == CRCInput::RC_ok || (!g_InfoViewer->getSwitchMode() && (msg == CRCInput::RC_sat || msg == CRCInput::RC_favorites))) {
if( (mode == mode_tv) || (mode == mode_radio) || (mode == mode_ts) || (mode == mode_webtv)) {
showChannelList(msg);
return messages_return::handled;