Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Home : AppCompatActivity() {
override fun onRequestPermissionsResult(requestCode: Int, permissions: Array<out String>, grantResults: IntArray) {
super.onRequestPermissionsResult(requestCode, permissions, grantResults)


super.onRequestPermissionsResult(requestCode, permissions, grantResults)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The call to super.onRequestPermissionsResult is redundant since it is already being called at the beginning of the method. This could lead to unexpected behavior or performance issues. It should be removed to avoid potential bugs.

- super.onRequestPermissionsResult(requestCode, permissions, grantResults)

Committable suggestion

IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
super.onRequestPermissionsResult(requestCode, permissions, grantResults)

}

override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
Expand Down