mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-11-01 23:33:54 +01:00
Fix some comments to make them clearer
This commit is contained in:
parent
038dd46724
commit
504eb8a8e9
1 changed files with 3 additions and 1 deletions
|
|
@ -245,9 +245,11 @@ class EditActivity : AppCompatActivity() {
|
||||||
* as a result, and finishes the current activity.
|
* as a result, and finishes the current activity.
|
||||||
*/
|
*/
|
||||||
fun getRotatedImage() {
|
fun getRotatedImage() {
|
||||||
//Get Permission to saccess
|
//Get Permission to access
|
||||||
if (ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE)
|
if (ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE)
|
||||||
!= PackageManager.PERMISSION_GRANTED) {
|
!= PackageManager.PERMISSION_GRANTED) {
|
||||||
|
//The request code 7747 can be change to any other constant, because it was choose randomly.
|
||||||
|
//The random selection is to avoid future duplication of the same code, preventing confusion during debugging.
|
||||||
ActivityCompat.requestPermissions(this, arrayOf(Manifest.permission.WRITE_EXTERNAL_STORAGE), 7747)
|
ActivityCompat.requestPermissions(this, arrayOf(Manifest.permission.WRITE_EXTERNAL_STORAGE), 7747)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue