Hide "QR-code" button from config import menu for Android devices without camera
This commit is contained in:
parent
3e02dfef63
commit
2b61c48303
6 changed files with 25 additions and 2 deletions
|
|
@ -191,6 +191,11 @@ void AndroidController::setNotificationText(const QString &title, const QString
|
|||
(jint) timerSec);
|
||||
}
|
||||
|
||||
bool AndroidController::isCameraPresent()
|
||||
{
|
||||
return callActivityMethod<jboolean>("isCameraPresent", "()Z");
|
||||
}
|
||||
|
||||
void AndroidController::startQrReaderActivity()
|
||||
{
|
||||
callActivityMethod("startQrCodeReader", "()V");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue