Commit 3a51578
Bypassed Storage Permission Check for Shared Images (#6543)
* Bypassed Storage Perms Check for External Share
The share intent provides files via content uris with temporary read permissions, so we do not need to obtain storage permissions
* Removed Unnecessary Local Variable
* Moved Bypass to the Start of checkStoragePermissions()
* Removed Duplicate Check in receiveSharedItems
---------
Co-authored-by: Ritika Pahwa <[email protected]>1 parent 14ecbe9 commit 3a51578
File tree
1 file changed
+12
-3
lines changed- app/src/main/java/fr/free/nrw/commons/upload
1 file changed
+12
-3
lines changedLines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
314 | 324 | | |
315 | 325 | | |
316 | 326 | | |
| 327 | + | |
317 | 328 | | |
318 | 329 | | |
319 | 330 | | |
| |||
472 | 483 | | |
473 | 484 | | |
474 | 485 | | |
475 | | - | |
476 | | - | |
477 | | - | |
| 486 | + | |
478 | 487 | | |
479 | 488 | | |
480 | 489 | | |
| |||
0 commit comments