From c3343e2562f07110b6067d8286025e87fdbee746 Mon Sep 17 00:00:00 2001 From: Neil Burrows Date: Wed, 17 Feb 2021 16:45:19 +0000 Subject: [PATCH] Fire "Application Loaded" beacon after getting list of libraries and initial "Continue Watching" rows --- components/home/HomeRows.brs | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/components/home/HomeRows.brs b/components/home/HomeRows.brs index 4a2647b2..923a31fd 100644 --- a/components/home/HomeRows.brs +++ b/components/home/HomeRows.brs @@ -10,8 +10,6 @@ sub init() m.top.rowLabelOffset = [0, 20] m.top.showRowCounter = [true] - m.libariesToLoad = 0 - updateSize() m.top.setfocus(true) @@ -186,6 +184,13 @@ function updateNextUpItems() end if end if + ' consider home screen loaded when above rows are loaded + if m.global.app_loaded = false then + m.top.signalBeacon("AppLaunchComplete") ' Roku Performance monitoring + m.global.app_loaded = true + end if + + ' create task nodes for "Latest In" rows userConfig = m.top.userConfig filteredLatest = filterNodeArray(m.libraryData, "id", userConfig.LatestItemsExcludes) @@ -201,7 +206,6 @@ function updateNextUpItems() loadLatest.observeField("content", "updateLatestItems") loadLatest.control = "RUN" - m.libariesToLoad += 1 end if end for end function @@ -258,12 +262,6 @@ function updateLatestItems(msg) homeRows.replaceChild(row, rowIndex) end if end if - - m.libariesToLoad -= 1 - if m.libariesToLoad = 0 and m.global.app_loaded = false then - m.top.signalBeacon("AppLaunchComplete") ' Roku Performance monitoring - m.global.app_loaded = true - end if end function function getRowIndex(rowTitle as string)