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

Commit e3473c4

Browse files
Fix bug (not decoding after first app launch)
1 parent 28c8899 commit e3473c4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/src/main/java/xyz/ckkpd/ewsparserapp/MainActivity.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ class MainActivity : AppCompatActivity(), CoroutineScope by MainScope() {
3333
val micPermissionCheck = ContextCompat.checkSelfPermission(this, Manifest.permission.RECORD_AUDIO)
3434
if(micPermissionCheck != PackageManager.PERMISSION_GRANTED) {
3535
ActivityCompat.requestPermissions(this, arrayOf(Manifest.permission.RECORD_AUDIO), 1)
36+
} else {
37+
launch { startDecoding() }
3638
}
3739
}
3840

0 commit comments

Comments
 (0)