Commit 01fa481
authored
Add multiple checks to supportsSoftButtonImages() (#1801)
This commit adds null checks and a List.size() check to PresentAlertOperation.supportsSoftButtonImages()
These checks prevent crashes and returns true when soft button capabilities are unavailable
This new behavior improves alignment with the other SDL libraries1 parent a624a06 commit 01fa481
1 file changed
Lines changed: 8 additions & 0 deletions
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
419 | 427 | | |
420 | 428 | | |
421 | 429 | | |
| |||
0 commit comments