Bug fix
This commit is contained in:
1 parent
529b915d7f
commit
0a7a6c65e2
2 files changed
+8
-2
No files matched your search
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- A rare bug that causes the app to crash when displaying video cells
|
- A rare bug that causes the app to crash when displaying video cells
|
||||||
|
- A rare bug where a long press can cause a crash
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
|
|||||||
@@ -123,16 +123,21 @@ function OnRowItemLongPressed(index as object) as void
|
|||||||
return
|
return
|
||||||
end if
|
end if
|
||||||
|
|
||||||
|
if not IsArray(index) or index.count() <> 2
|
||||||
|
LogWarn("Invalid index:", index)
|
||||||
|
return
|
||||||
|
end if
|
||||||
|
|
||||||
rowIndex = index[0]
|
rowIndex = index[0]
|
||||||
rowItemIndex = index[1]
|
rowItemIndex = index[1]
|
||||||
|
|
||||||
if rowIndex < 0 or rowIndex >= content.GetChildCount()
|
if not IsInt(rowIndex) or rowIndex < 0 or rowIndex >= content.GetChildCount()
|
||||||
LogWarn("Invalid row index:", rowIndex)
|
LogWarn("Invalid row index:", rowIndex)
|
||||||
return
|
return
|
||||||
end if
|
end if
|
||||||
row = content.GetChild(rowIndex)
|
row = content.GetChild(rowIndex)
|
||||||
|
|
||||||
if rowItemIndex < 0 or rowItemIndex >= row.GetChildCount()
|
if not IsInt(rowItemIndex) or rowItemIndex < 0 or rowItemIndex >= row.GetChildCount()
|
||||||
LogWarn("Invalid row item index:", rowItemIndex)
|
LogWarn("Invalid row item index:", rowItemIndex)
|
||||||
return
|
return
|
||||||
end if
|
end if
|
||||||
|
|||||||
Reference in new issue
Block a user