Commit e7e9a85
committed
Fix nullable Bitmap.Config type mismatch in DeepLabV3 MainActivity
Bitmap.config can return null, but Bitmap.copy() expects a non-null
Config. Fall back to ARGB_8888 when config is null.1 parent 58ace01 commit e7e9a85
1 file changed
Lines changed: 1 addition & 1 deletion
File tree
- dl3/android/DeepLabV3Demo/app/src/main/java/org/pytorch/executorchexamples/dl3
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
423 | | - | |
| 423 | + | |
424 | 424 | | |
425 | 425 | | |
426 | 426 | | |
| |||
0 commit comments