Fix bug #8665924 Native arabic numerals in the bluetooth pairing ui
- force LATIN digits for passkey Change-Id: Ifc7fc746677df4c1e9013ecfe6e9f4887f2d4f1d
This commit is contained in:
@@ -43,6 +43,8 @@ import com.android.internal.app.AlertController;
|
|||||||
import com.android.settings.R;
|
import com.android.settings.R;
|
||||||
import android.view.KeyEvent;
|
import android.view.KeyEvent;
|
||||||
|
|
||||||
|
import java.util.Locale;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BluetoothPairingDialog asks the user to enter a PIN / Passkey / simple confirmation
|
* BluetoothPairingDialog asks the user to enter a PIN / Passkey / simple confirmation
|
||||||
* for pairing with a remote Bluetooth device. It is an activity that appears as a dialog.
|
* for pairing with a remote Bluetooth device. It is an activity that appears as a dialog.
|
||||||
@@ -120,7 +122,7 @@ public final class BluetoothPairingDialog extends AlertActivity implements
|
|||||||
Log.e(TAG, "Invalid Confirmation Passkey received, not showing any dialog");
|
Log.e(TAG, "Invalid Confirmation Passkey received, not showing any dialog");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
mPairingKey = String.format("%06d", passkey);
|
mPairingKey = String.format(Locale.US, "%06d", passkey);
|
||||||
createConfirmationDialog(deviceManager);
|
createConfirmationDialog(deviceManager);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user