am 7faf750f: am 73779f76: Make readUnigramsAndBigramsBinary read linked-list nodes.

* commit '7faf750f4a0868afd2d0692a96794ccecb2ede28':
  Make readUnigramsAndBigramsBinary read linked-list nodes.
diff --git a/java/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtils.java b/java/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtils.java
index 7a1b9dc..4060710 100644
--- a/java/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtils.java
+++ b/java/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtils.java
@@ -92,7 +92,18 @@
             }
 
             if (p.mPosition == p.mNumOfCharGroup) {
-                stack.pop();
+                if (formatOptions.mHasLinkedListNode) {
+                    final int forwardLinkAddress = buffer.readUnsignedInt24();
+                    if (forwardLinkAddress != FormatSpec.NO_FORWARD_LINK_ADDRESS) {
+                        // the node has a forward link.
+                        p.mNumOfCharGroup = Position.NOT_READ_GROUPCOUNT;
+                        p.mAddress = forwardLinkAddress;
+                    } else {
+                        stack.pop();
+                    }
+                } else {
+                    stack.pop();
+                }
             } else {
                 // the node has more groups.
                 p.mAddress = buffer.position();