aboutsummaryrefslogtreecommitdiff
path: root/src/com/android/tv/guide/ProgramManager.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/tv/guide/ProgramManager.java')
-rw-r--r--src/com/android/tv/guide/ProgramManager.java20
1 files changed, 5 insertions, 15 deletions
diff --git a/src/com/android/tv/guide/ProgramManager.java b/src/com/android/tv/guide/ProgramManager.java
index e543fd05..e3d919df 100644
--- a/src/com/android/tv/guide/ProgramManager.java
+++ b/src/com/android/tv/guide/ProgramManager.java
@@ -29,7 +29,7 @@ import com.android.tv.data.ProgramDataManager;
import com.android.tv.dvr.DvrDataManager;
import com.android.tv.dvr.DvrScheduleManager;
import com.android.tv.dvr.DvrScheduleManager.OnConflictStateChangeListener;
-import com.android.tv.dvr.data.ScheduledRecording;
+import com.android.tv.dvr.ScheduledRecording;
import com.android.tv.util.TvInputManagerHelper;
import com.android.tv.util.Utils;
@@ -439,24 +439,11 @@ public class ProgramManager {
mChannels = mChannelDataManager.getBrowsableChannelList();
mSelectedGenreId = GenreItems.ID_ALL_CHANNELS;
mFilteredChannels = mChannels;
- updateTableEntriesWithoutNotification(clearPreviousTableEntries);
- // Channel update notification should be called after updating table entries, so that
- // the listener can get the entries.
notifyChannelsUpdated();
- notifyTableEntriesUpdated();
- buildGenreFilters();
+ updateTableEntries(clearPreviousTableEntries);
}
private void updateTableEntries(boolean clear) {
- updateTableEntriesWithoutNotification(clear);
- notifyTableEntriesUpdated();
- buildGenreFilters();
- }
-
- /**
- * Updates the table entries without notifying the change.
- */
- private void updateTableEntriesWithoutNotification(boolean clear) {
if (clear) {
mChannelIdEntriesMap.clear();
}
@@ -504,6 +491,9 @@ public class ProgramManager {
}
}
}
+
+ notifyTableEntriesUpdated();
+ buildGenreFilters();
}
private void notifyGenresUpdated() {