fixed again display of channel in schedules header

This commit is contained in:
louis
2015-01-11 14:46:33 +01:00
parent 74febbfe86
commit 5d86c45bc6
7 changed files with 26 additions and 9 deletions

View File

@@ -324,6 +324,10 @@ void cDisplayMenuRootView::KeyInput(bool up, bool page) {
}
void cDisplayMenuRootView::Clear(void) {
if (view) {
view->ClearChannel();
view->ClearEpgSearchFavorite();
}
if (listView) {
listView->Clear();
}

View File

@@ -18,7 +18,9 @@ public:
void SetTitle(const char *title) {menuTitle = title; };
virtual void SetChannel(const cChannel *channel) {};
virtual const cChannel *GetChannel(void) { return NULL; };
virtual void ClearChannel(void) {};
virtual void SetEpgSearchFavorite(void) {};
virtual void ClearEpgSearchFavorite(void) {};
void SetButtonTexts(string *buttonTexts) { this->buttonTexts = buttonTexts; };
bool DrawBackground(void);
virtual bool DrawHeader(void);
@@ -59,7 +61,9 @@ public:
virtual ~cDisplayMenuSchedulesView();
void SetChannel(const cChannel *channel) { if (channel) this->channel = channel; };
const cChannel *GetChannel(void) { return channel; };
void ClearChannel(void) { channel = NULL; };
void SetEpgSearchFavorite(void) { isEpgSearchFavoritesMenu = true; };
void ClearEpgSearchFavorite(void) { isEpgSearchFavoritesMenu = false; };
bool DrawHeader(void);
};