mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Fix ShortcutListPolicy::getStartPos().
Bug: 6669677 Change-Id: I1fa9967fc6aa0956986954c8ea1f990a47c15764
This commit is contained in:
parent
e18fdf804a
commit
dfecc86f25
@ -33,6 +33,9 @@ class ShortcutListPolicy : public DictionaryShortcutsStructurePolicy {
|
|||||||
~ShortcutListPolicy() {}
|
~ShortcutListPolicy() {}
|
||||||
|
|
||||||
int getStartPos(const int pos) const {
|
int getStartPos(const int pos) const {
|
||||||
|
if (pos == NOT_A_DICT_POS) {
|
||||||
|
return NOT_A_DICT_POS;
|
||||||
|
}
|
||||||
int listPos = pos;
|
int listPos = pos;
|
||||||
ShortcutListReadingUtils::getShortcutListSizeAndForwardPointer(mShortcutsBuf, &listPos);
|
ShortcutListReadingUtils::getShortcutListSizeAndForwardPointer(mShortcutsBuf, &listPos);
|
||||||
return listPos;
|
return listPos;
|
||||||
|
Loading…
Reference in New Issue
Block a user