Reverted previous changes to getWritePermission but applied suggestion to simplify. the condition check and to add extra accidental calls, even though the method would never be called in that scenario.
Simplifed hasWritePermission logic
Added comment suggestion to hasWritePermission
Testing
build test
Checklist
[ ] I've run the tests to see all new and existing tests pass
[ ] I added automated test coverage as appropriate for this change
[ ] Commit is prefixed with (platform) if this change only applies to one platform (e.g. (android))
Platforms affected
android
Motivation and Context
rebase, fix, and simplify changes from #581
Closes #581
Description
This PR performed following changes against #581:
getWritePermission
but applied suggestion to simplify. the condition check and to add extra accidental calls, even though the method would never be called in that scenario.hasWritePermission
logichasWritePermission
Testing
build test
Checklist
(platform)
if this change only applies to one platform (e.g.(android)
)