Fix some comments to make them clearer

This commit is contained in:
Quiet 2024-10-28 13:14:12 +11:00
parent 038dd46724
commit 504eb8a8e9

View file

@ -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)
}