Maybe fix issue #2482201: Paired bluetooth device looks like a qwerty keyboard

We now only consider a device to be a default keyboard if its name
has "-keypad".  A hack, but whatever.

Also add some debug logging for the input state to help identify such
issues in the future.
This commit is contained in:
Dianne Hackborn
2010-03-02 17:19:29 -08:00
parent c018f3cfdd
commit a2e92266b3
4 changed files with 169 additions and 15 deletions

View File

@@ -10851,6 +10851,10 @@ public class WindowManagerService extends IWindowManager.Stub
return;
}
pw.println("Input State:");
mQueue.dump(pw, " ");
pw.println(" ");
synchronized(mWindowMap) {
pw.println("Current Window Manager state:");
for (int i=mWindows.size()-1; i>=0; i--) {
@@ -11014,7 +11018,7 @@ public class WindowManagerService extends IWindowManager.Stub
if (mDimAnimator != null) {
mDimAnimator.printTo(pw);
} else {
pw.print( " no DimAnimator ");
pw.println( " no DimAnimator ");
}
pw.print(" mInputMethodAnimLayerAdjustment=");
pw.print(mInputMethodAnimLayerAdjustment);