From 504eb8a8e92bbce5b9f594c47b9f3eed7202978c Mon Sep 17 00:00:00 2001 From: Quiet Date: Mon, 28 Oct 2024 13:14:12 +1100 Subject: [PATCH] Fix some comments to make them clearer --- app/src/main/java/fr/free/nrw/commons/edit/EditActivity.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/fr/free/nrw/commons/edit/EditActivity.kt b/app/src/main/java/fr/free/nrw/commons/edit/EditActivity.kt index 445792028..09aac2ccb 100644 --- a/app/src/main/java/fr/free/nrw/commons/edit/EditActivity.kt +++ b/app/src/main/java/fr/free/nrw/commons/edit/EditActivity.kt @@ -245,9 +245,11 @@ class EditActivity : AppCompatActivity() { * as a result, and finishes the current activity. */ fun getRotatedImage() { - //Get Permission to saccess + //Get Permission to access if (ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE) != 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) }