Commit b9bd254
committed
fix(android): add permission type validation in listener
- Validate that permissions array contains CAMERA permission
- Prevent incorrect permission grant due to array mismatch
- Add security check: permissions[0] == Manifest.permission.CAMERA
- Ensure only camera permission results are processed1 parent 9ebd4b1 commit b9bd254
File tree
1 file changed
+4
-1
lines changed- android/src/main/java/com/pushpendersingh/reactnativescanner
1 file changed
+4
-1
lines changedLines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
| |||
0 commit comments