Get alias for Bluetooth devices.
Bluetooth devices can be renamed by the user. Make the input system aware of the user-specified name and transparently pass it down to applications. This enables the keyboard layout picker Settings UI to use device names that are consistent with what the user set in the Bluetooth UI. Bug: 6363157 Change-Id: I8eea26ce2c69c2a3f09c8de02e9e847610e0419c
This commit is contained in:
@ -726,6 +726,7 @@ class ServerThread extends Thread {
|
||||
final StatusBarManagerService statusBarF = statusBar;
|
||||
final DreamManagerService dreamyF = dreamy;
|
||||
final InputManagerService inputManagerF = inputManager;
|
||||
final BluetoothService bluetoothF = bluetooth;
|
||||
|
||||
// We now tell the activity manager it is okay to run third party
|
||||
// code. It will call back into us once it has gotten to the state
|
||||
@ -838,7 +839,7 @@ class ServerThread extends Thread {
|
||||
reportWtf("making DreamManagerService ready", e);
|
||||
}
|
||||
try {
|
||||
if (inputManagerF != null) inputManagerF.systemReady();
|
||||
if (inputManagerF != null) inputManagerF.systemReady(bluetoothF);
|
||||
} catch (Throwable e) {
|
||||
reportWtf("making InputManagerService ready", e);
|
||||
}
|
||||
|
Reference in New Issue
Block a user