- Start baresip service also when there is no need to ask for Microphone
permission.
This commit is contained in:
@@ -435,8 +435,12 @@ class MainActivity : AppCompatActivity() {
|
|||||||
askPasswords(accounts)
|
askPasswords(accounts)
|
||||||
} else {
|
} else {
|
||||||
// Baresip is started for the first time
|
// Baresip is started for the first time
|
||||||
Utils.requestPermission(this, Manifest.permission.RECORD_AUDIO,
|
if (!Utils.checkPermission(this, Manifest.permission.RECORD_AUDIO))
|
||||||
RECORD_PERMISSION_REQUEST_CODE)
|
Utils.requestPermission(this, Manifest.permission.RECORD_AUDIO,
|
||||||
|
RECORD_PERMISSION_REQUEST_CODE)
|
||||||
|
else
|
||||||
|
// Some old devices have granted Mic permission without a need to ask
|
||||||
|
startBaresip()
|
||||||
}
|
}
|
||||||
|
|
||||||
} // OnCreate
|
} // OnCreate
|
||||||
|
|||||||
Reference in New Issue
Block a user