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

Commit fa034b1b authored by Haijie Hong's avatar Haijie Hong Committed by Android (Google) Code Review
Browse files

Merge "Use default locale when formatting passkey" into main

parents d5e69fa0 04404a37
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -448,7 +448,7 @@ public class BluetoothPairingController implements OnCheckedChangeListener,
        switch (mType) {
            case BluetoothDevice.PAIRING_VARIANT_PASSKEY_CONFIRMATION:
            case BluetoothDevice.PAIRING_VARIANT_DISPLAY_PASSKEY:
                return String.format(Locale.US, "%06d", passkey);
                return String.format(Locale.getDefault(), "%06d", passkey);

            case BluetoothDevice.PAIRING_VARIANT_DISPLAY_PIN:
                return String.format("%04d", passkey);