Skip to content

Commit

Permalink
fix camera 2
Browse files Browse the repository at this point in the history
  • Loading branch information
katahiromz committed Nov 14, 2023
1 parent fa5328e commit 7e0b2f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/com/katahiromz/krakra_ja_jp/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ class MainActivity : AppCompatActivity(), ValueCallback<String>, TextToSpeech.On
}
}

private val cameraRecordingPermissionChecker =
private val cameraPermissionChecker =
PermissionChecker(
this,
android.Manifest.permission.CAMERA,
Expand All @@ -189,7 +189,7 @@ class MainActivity : AppCompatActivity(), ValueCallback<String>, TextToSpeech.On
fun requestCamera() {
val cameraCheck = ContextCompat.checkSelfPermission(this, android.Manifest.permission.CAMERA)
if (cameraCheck != PackageManager.PERMISSION_GRANTED) {
cameraRecordingPermissionChecker.runWithPermission {}
cameraPermissionChecker.runWithPermission {}
}
}

Expand Down

0 comments on commit 7e0b2f9

Please sign in to comment.