Skip to content

Ask for mic permission from callfFagment#1331

Open
TrueWatcher wants to merge 4 commits intoevilcorpltd:masterfrom
TrueWatcher:mic_permission_in_callfragment
Open

Ask for mic permission from callfFagment#1331
TrueWatcher wants to merge 4 commits intoevilcorpltd:masterfrom
TrueWatcher:mic_permission_in_callfragment

Conversation

@TrueWatcher
Copy link
Copy Markdown
Contributor

On the app's fresh run,
when the user gets to the call screen, they are asked for the microphone permission.

With the permission granted or denied (and remembered by OS), it's not asked for again.

If the permission has been granted, the mic is on by default, but may be muted with the microphone control button.

If the permission has been denied, the mic is off. On pressing its control, a warning is displayed. This kind of users is expected to know what they do, and to be able to turn the permission on via System Settings - Apps.


This PR is untended to work with #1330
Together they close issues #1316 and #1315

@TrueWatcher
Copy link
Copy Markdown
Contributor Author

TrueWatcher commented Dec 13, 2025

By the way, what will be result of calling CallManager.startSendingAudio() when the thing is already sending frames ?

  • error re-initializing some val (and the event thread termination)
  • one more running instance of recorder
  • something useful
  • ???

I added the check in this commit, but I'm not sure, My Kotlin is not good enough..

O
Merge remote-tracking branch 'upstream/master' into mic_permission_in_callfragment
} else {
Toast.makeText(requireContext(), getString(R.string.call_mic_permission_needed), Toast.LENGTH_LONG).show()
Log.d(TAG, "Got no permission")
// Toast.makeText(requireContext(), getString(R.string.call_mic_permission_needed), Toast.LENGTH_LONG).show()

Check warning

Code scanning / detekt

Line detected, which is longer than the defined maximum line length in the code style. Warning

Line detected, which is longer than the defined maximum line length in the code style.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants