From abc73a2478e871131577d8d08d88af3c01fc6344 Mon Sep 17 00:00:00 2001 From: jimiatnymbl Date: Sat, 8 Jan 2022 22:50:53 -0700 Subject: [PATCH] Formatting --- components/liveTv/LoadProgramDetailsTask.brs | 2 +- components/liveTv/ProgramDetails.brs | 44 ++++++++++---------- components/liveTv/schedule.brs | 4 +- 3 files changed, 25 insertions(+), 25 deletions(-) diff --git a/components/liveTv/LoadProgramDetailsTask.brs b/components/liveTv/LoadProgramDetailsTask.brs index db37806d..7c25a6e6 100644 --- a/components/liveTv/LoadProgramDetailsTask.brs +++ b/components/liveTv/LoadProgramDetailsTask.brs @@ -31,7 +31,7 @@ sub loadProgramDetails() if program.json.TimerId <> invalid ' This is needed here because the callee (onProgramDetailsLoaded) replaces the grid item with ' this newly created item from the server, without this, the red icon - ' disappears when the user focuses on the program in question + ' disappears when the user focuses on the program in question program.hdSmallIconUrl = "pkg:/images/red.png" end if m.top.programDetails = program diff --git a/components/liveTv/ProgramDetails.brs b/components/liveTv/ProgramDetails.brs index 28058e37..79cb1c31 100644 --- a/components/liveTv/ProgramDetails.brs +++ b/components/liveTv/ProgramDetails.brs @@ -39,7 +39,7 @@ sub init() m.recordSeriesLabel = m.top.findNode("recordSeriesButtonLabel") m.focusAnimation.observeField("state", "onAnimationComplete") - + setupLabels() end sub @@ -69,19 +69,19 @@ sub setupLabels() m.recordLabel.text = tr("Record") boundingRect = m.recordButton.boundingRect() - recordButtonBackground = m.top.findNode("recordButtonBackground") + recordButtonBackground = m.top.findNode("recordButtonBackground") recordButtonBackground.width = boundingRect.width + 20 - recordButtonBackground.height = boundingRect.height + 20 - m.recordOutline.width = recordButtonBackground.width - m.recordOutline.height = recordButtonBackground.height - + recordButtonBackground.height = boundingRect.height + 20 + m.recordOutline.width = recordButtonBackground.width + m.recordOutline.height = recordButtonBackground.height + m.recordSeriesLabel.text = tr("Record Series") boundingRect = m.recordSeriesButton.boundingRect() - recordSeriesButtonBackground = m.top.findNode("recordSeriesButtonBackground") + recordSeriesButtonBackground = m.top.findNode("recordSeriesButtonBackground") recordSeriesButtonBackground.width = boundingRect.width + 20 - recordSeriesButtonBackground.height = boundingRect.height + 20 - m.recordSeriesOutline.width = recordSeriesButtonBackground.width - m.recordSeriesOutline.height = recordSeriesButtonBackground.height + recordSeriesButtonBackground.height = boundingRect.height + 20 + m.recordSeriesOutline.width = recordSeriesButtonBackground.width + m.recordSeriesOutline.height = recordSeriesButtonBackground.height end sub sub updateLabels(recordText = "Record", recordSeriesText = "Record Series") @@ -89,18 +89,18 @@ sub updateLabels(recordText = "Record", recordSeriesText = "Record Series") m.recordSeriesLabel.text = tr(recordSeriesText) boundingRect = m.recordButton.boundingRect() - recordButtonBackground = m.top.findNode("recordButtonBackground") - recordButtonBackground.width = boundingRect.width - recordButtonBackground.height = boundingRect.height - m.recordOutline.width = recordButtonBackground.width - m.recordOutline.height = recordButtonBackground.height + recordButtonBackground = m.top.findNode("recordButtonBackground") + recordButtonBackground.width = boundingRect.width + recordButtonBackground.height = boundingRect.height + m.recordOutline.width = recordButtonBackground.width + m.recordOutline.height = recordButtonBackground.height boundingRect = m.recordSeriesButton.boundingRect() - recordSeriesButtonBackground = m.top.findNode("recordSeriesButtonBackground") - recordSeriesButtonBackground.width = boundingRect.width - recordSeriesButtonBackground.height = boundingRect.height - m.recordSeriesOutline.width = recordSeriesButtonBackground.width - m.recordSeriesOutline.height = recordSeriesButtonBackground.height + recordSeriesButtonBackground = m.top.findNode("recordSeriesButtonBackground") + recordSeriesButtonBackground.width = boundingRect.width + recordSeriesButtonBackground.height = boundingRect.height + m.recordSeriesOutline.width = recordSeriesButtonBackground.width + m.recordSeriesOutline.height = recordSeriesButtonBackground.height end sub sub channelUpdated() @@ -300,8 +300,8 @@ function onKeyEvent(key as string, press as boolean) as boolean m.top.recordSelectedChannel = true return true else if key = "OK" and m.recordSeriesButton.hasFocus() - m.top.recordSeriesSelectedChannel = true - return true + m.top.recordSeriesSelectedChannel = true + return true end if if key = "right" and m.viewChannelButton.hasFocus() diff --git a/components/liveTv/schedule.brs b/components/liveTv/schedule.brs index a0b3b444..98aeab6c 100644 --- a/components/liveTv/schedule.brs +++ b/components/liveTv/schedule.brs @@ -190,7 +190,7 @@ sub onRecordChannelSelected() focusProgramDetails(false) m.scheduleGrid.showLoadingDataFeedback = true - + m.RecordProgramTask = createObject("roSGNode", "RecordProgramTask") m.RecordProgramTask.programDetails = m.detailsPane.programDetails m.RecordProgramTask.recordSeries = false @@ -208,7 +208,7 @@ sub onRecordSeriesChannelSelected() focusProgramDetails(false) m.scheduleGrid.showLoadingDataFeedback = true - + m.RecordProgramTask = createObject("roSGNode", "RecordProgramTask") m.RecordProgramTask.programDetails = m.detailsPane.programDetails m.RecordProgramTask.recordSeries = true