From 4043f3ef4562cc0975e659e3a93f7197bc4a8a7f Mon Sep 17 00:00:00 2001 From: Charles Ewert Date: Wed, 22 Nov 2023 17:08:37 -0500 Subject: [PATCH] fix photo and album infinite spinner --- components/photos/PhotoDetails.bs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/photos/PhotoDetails.bs b/components/photos/PhotoDetails.bs index 0048d1a2..07d16f67 100644 --- a/components/photos/PhotoDetails.bs +++ b/components/photos/PhotoDetails.bs @@ -23,14 +23,12 @@ sub itemContentChanged() if isValidToContinue(m.top.itemIndex) m.LoadLibrariesTask = createObject("roSGNode", "LoadPhotoTask") if isValid(m.top.itemsNode) - stopLoadingSpinner() if isValid(m.top.itemsNode.content) m.LoadLibrariesTask.itemNodeContent = m.top.itemsNode.content.getChild(m.top.itemIndex) else if isValidAndNotEmpty(m.top.itemsNode.id) m.LoadLibrariesTask.itemNodeContent = m.top.itemsNode end if else if isValid(m.top.itemsArray) - stopLoadingSpinner() itemContent = m.top.itemsArray[m.top.itemIndex] m.LoadLibrariesTask.itemArrayContent = itemContent else @@ -43,6 +41,7 @@ sub itemContentChanged() end sub sub onPhotoLoaded() + stopLoadingSpinner() if m.LoadLibrariesTask.results <> invalid photo = m.top.findNode("photo") photo.uri = m.LoadLibrariesTask.results