Changeset 3b4091a in subsurface


Ignore:
Timestamp:
Jun 1, 2017, 4:53:29 PM (6 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
dbd1d1f4
Parents:
ed39269
git-author:
Jan Mulder <jlmulder@…> (06/01/17 13:19:40)
git-committer:
Dirk Hohndel <dirk@…> (06/01/17 16:53:29)
Message:

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@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mobile-widgets/qmlmanager.cpp

    red39269 r3b4091a  
    9595{
    9696#if defined(BT_SUPPORT)
    97         if (localBtDevice.isValid()) {
    98                 localBtDevice.powerOn();
     97        if (localBtDevice.isValid() &&
     98            localBtDevice.hostMode() == QBluetoothLocalDevice::HostConnectable) {
    9999                QStringList pairedBT = getBluetoothDevices();
    100100
Note: See TracChangeset for help on using the changeset viewer.