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

Commit 4d279a56 authored by Salvador Martinez's avatar Salvador Martinez
Browse files

BluetoothDialog view fixed for no pair code case

BluetoothPairingDialog no longer asks for a
pair code when the user only needs to
confirm that they would like to connect
to a device. Also, the layout padding
was updated a bit to make it look nicer.

Test: RunSettingsRoboTests
Bug: 31340598
Change-Id: I9394fcd53dffcff9a17fbafabdce0e94ae88fba2
parent 9fc9f0f1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@
        android:paddingStart="16dip"
        android:layout_height="match_parent"
        android:layout_width="match_parent"
        android:layout_marginTop="@dimen/bluetooth_dialog_padding_top"
        android:orientation="vertical">

        <TextView
+1 −0
Original line number Diff line number Diff line
@@ -204,6 +204,7 @@

    <!-- Bluetooth Preferences -->
    <dimen name="bluetooth_dialog_padding">8dip</dimen>
    <dimen name="bluetooth_dialog_padding_top">20dp</dimen>
    <integer name="bluetooth_name_length">32</integer>
    <dimen name="bluetooth_pairing_padding">24dp</dimen>
    <dimen name="bluetooth_pairing_edittext_padding">21dp</dimen>
+2 −0
Original line number Diff line number Diff line
@@ -309,6 +309,8 @@ public final class BluetoothPairingDialog extends AlertActivity implements
                break;

            case BluetoothDevice.PAIRING_VARIANT_CONSENT:
                messagePairing.setVisibility(view.GONE);
                break;
            case BluetoothDevice.PAIRING_VARIANT_OOB_CONSENT:
                messagePairing.setVisibility(View.VISIBLE);
                break;