Fix ShortcutListPolicy::getStartPos().
Bug: 6669677 Change-Id: I1fa9967fc6aa0956986954c8ea1f990a47c15764
This commit is contained in:
parent
e18fdf804a
commit
dfecc86f25
1 changed files with 3 additions and 0 deletions
|
@ -33,6 +33,9 @@ class ShortcutListPolicy : public DictionaryShortcutsStructurePolicy {
|
|||
~ShortcutListPolicy() {}
|
||||
|
||||
int getStartPos(const int pos) const {
|
||||
if (pos == NOT_A_DICT_POS) {
|
||||
return NOT_A_DICT_POS;
|
||||
}
|
||||
int listPos = pos;
|
||||
ShortcutListReadingUtils::getShortcutListSizeAndForwardPointer(mShortcutsBuf, &listPos);
|
||||
return listPos;
|
||||
|
|
Loading…
Reference in a new issue