am efd8b838: Add MoreKeySpec.toString() method for debugging
* commit 'efd8b838ee9415ba4ed692ecf136a918cfa02c54': Add MoreKeySpec.toString() method for debuggingmain
commit
96c41a1513
|
@ -84,6 +84,15 @@ public class KeySpecParser {
|
||||||
}
|
}
|
||||||
mIconId = getIconId(moreKeySpec);
|
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() {
|
private KeySpecParser() {
|
||||||
|
|
Loading…
Reference in New Issue