Add MoreKeySpec.toString() method for debugging
Change-Id: Icf9c6e15521849ffc51911c1e256c9815c1960f4
This commit is contained in:
parent
d157bb0d55
commit
efd8b838ee
1 changed files with 9 additions and 0 deletions
|
@ -84,6 +84,15 @@ public class KeySpecParser {
|
|||
}
|
||||
mIconId = getIconId(moreKeySpec);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
final String label = (mIconId == KeyboardIconsSet.ICON_UNDEFINED ? mLabel
|
||||
: PREFIX_ICON + KeyboardIconsSet.getIconName(mIconId));
|
||||
final String output = (mCode == Keyboard.CODE_OUTPUT_TEXT ? mOutputText
|
||||
: String.format("0x%04x", mCode));
|
||||
return label + "/" + output;
|
||||
}
|
||||
}
|
||||
|
||||
private KeySpecParser() {
|
||||
|
|
Loading…
Reference in a new issue