Skip to content

Commit

Permalink
fix override params of onRequestPermissionResult
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdyrod committed Dec 19, 2024
1 parent f4ccc58 commit ce1d927
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ abstract class SessionManagerActivity : AppCompatActivity(), ActivityResultObser

override fun onRequestPermissionsResult(
requestCode: Int,
permissions: Array<String?>,
permissions: Array<out String>,
grantResults: IntArray,
) {
if (activityResultObserver != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class ScanActivity : ActivityGlobalAbstract() {

override fun onRequestPermissionsResult(
requestCode: Int,
permissions: Array<String?>,
permissions: Array<out String>,
grantResults: IntArray,
) {
super.onRequestPermissionsResult(requestCode, permissions, grantResults)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class SMSSenderHelper(
.show(fragmentManager, BottomSheetDialogUiModel::class.java.simpleName)
}

private fun createSMSIntent(message: String, smsToNumber: String): Intent? {
private fun createSMSIntent(message: String, smsToNumber: String): Intent {
val uri = Uri.parse("smsto:$smsToNumber")
val intent = Intent(Intent.ACTION_SENDTO).apply {
data = uri
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ interface ActivityResultObserver {
fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?)
fun onRequestPermissionsResult(
requestCode: Int,
permissions: Array<String?>,
permissions: Array<out String>,
grantResults: IntArray,
)
}

0 comments on commit ce1d927

Please sign in to comment.