Android BT: do not force BT on

It is very impolite to force BT on at start of the mobile app. We cannot
know if the user is going to import dives over BT.

Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
Jan Mulder 2017-06-01 22:19:40 +02:00 committed by Dirk Hohndel
parent ed392694db
commit 3b4091a0b9

View file

@ -94,8 +94,8 @@ QMLManager::QMLManager() : m_locationServiceEnabled(false),
alreadySaving(false)
{
#if defined(BT_SUPPORT)
if (localBtDevice.isValid()) {
localBtDevice.powerOn();
if (localBtDevice.isValid() &&
localBtDevice.hostMode() == QBluetoothLocalDevice::HostConnectable) {
QStringList pairedBT = getBluetoothDevices();
for (int i = 0; i < pairedBT.length(); i++) {