Skip to content
This repository was archived by the owner on May 7, 2023. It is now read-only.

Commit

Permalink
Fix bug (not decoding after first app launch)
Browse files Browse the repository at this point in the history
  • Loading branch information
private-yusuke committed Feb 28, 2021
1 parent 28c8899 commit e3473c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/main/java/xyz/ckkpd/ewsparserapp/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ class MainActivity : AppCompatActivity(), CoroutineScope by MainScope() {
val micPermissionCheck = ContextCompat.checkSelfPermission(this, Manifest.permission.RECORD_AUDIO)
if(micPermissionCheck != PackageManager.PERMISSION_GRANTED) {
ActivityCompat.requestPermissions(this, arrayOf(Manifest.permission.RECORD_AUDIO), 1)
} else {
launch { startDecoding() }
}
}

Expand Down

0 comments on commit e3473c4

Please sign in to comment.