Skip to content

Commit

Permalink
fix photo and album infinite spinner
Browse files Browse the repository at this point in the history
  • Loading branch information
cewert committed Nov 22, 2023
1 parent c714bc2 commit 4043f3e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/photos/PhotoDetails.bs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 4043f3e

Please sign in to comment.