Add microphone permission check/request for Android

main
Doug McLain 8 months ago
parent 0d0a0c8e91
commit a37ee985d6

@ -91,6 +91,11 @@ void DroidStar::keepScreenOn()
window.callMethod<void>("addFlags", "(I)V", FLAG_KEEP_SCREEN_ON);
}
}});
QMicrophonePermission microphonePermission;
if (qApp->checkPermission(microphonePermission) != Qt::PermissionStatus::Granted) {
qApp->requestPermission(microphonePermission, this, &DroidStar::keepScreenOn);
}
}
void DroidStar::reset_connect_status()
{

Loading…
Cancel
Save