Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 01164fd4 authored by Michał Narajowski's avatar Michał Narajowski
Browse files

bt: Show additional message when is late bond

Sometimes the cached bluetooth device is not found and we the
BluetoothPairingController does not know if this device is a member of a
set. But if this is a late bond then it is a set member so we still want
to display that additional message.

Bug: 282193044
Test: manual
Tag: #feature
Change-Id: I9e7da093b118a81097dc83460e9b93ce2e477482
parent 63d37a3d
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -361,8 +361,10 @@ public class BluetoothPairingDialogFragment extends InstrumentedDialogFragment i
            messagePairingSet.setText(getString(R.string.bluetooth_pairing_group_late_bonding));
        }

        messagePairingSet.setVisibility(mPairingController.isCoordinatedSetMemberDevice()
                ? View.VISIBLE : View.GONE);
        boolean setPairingMessage =
            mPairingController.isCoordinatedSetMemberDevice() || mPairingController.isLateBonding();

        messagePairingSet.setVisibility(setPairingMessage ? View.VISIBLE : View.GONE);
        return view;
    }
}