Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a05c9474 authored by Keisuke Kuroyanagi's avatar Keisuke Kuroyanagi Committed by Android Git Automerger
Browse files

am dfecc86f: Fix ShortcutListPolicy::getStartPos().

* commit 'dfecc86f':
  Fix ShortcutListPolicy::getStartPos().
parents f6236e7e dfecc86f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;