aboutsummaryrefslogtreecommitdiff
path: root/src/com/android/tv/dvr/ui/list/ScheduleRow.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/tv/dvr/ui/list/ScheduleRow.java')
-rw-r--r--src/com/android/tv/dvr/ui/list/ScheduleRow.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/com/android/tv/dvr/ui/list/ScheduleRow.java b/src/com/android/tv/dvr/ui/list/ScheduleRow.java
index 3fc92e8a..91ba393a 100644
--- a/src/com/android/tv/dvr/ui/list/ScheduleRow.java
+++ b/src/com/android/tv/dvr/ui/list/ScheduleRow.java
@@ -20,12 +20,13 @@ import android.content.Context;
import android.support.annotation.Nullable;
import com.android.tv.common.SoftPreconditions;
-import com.android.tv.dvr.ScheduledRecording;
+import com.android.tv.dvr.data.ScheduledRecording;
+import com.android.tv.dvr.ui.DvrUiHelper;
/**
* A class for schedule recording row.
*/
-public class ScheduleRow {
+class ScheduleRow {
private final SchedulesHeaderRow mHeaderRow;
@Nullable private ScheduledRecording mSchedule;
private boolean mStopRecordingRequested;
@@ -166,7 +167,8 @@ public class ScheduleRow {
* Returns the program title with episode number.
*/
public String getProgramTitleWithEpisodeNumber(Context context) {
- return mSchedule != null ? mSchedule.getProgramTitleWithEpisodeNumber(context) : null;
+ return mSchedule != null ? DvrUiHelper.getStyledTitleWithEpisodeNumber(context,
+ mSchedule, 0).toString() : null;
}
/**