X-Git-Url: http://gitweb.fperrin.net/?a=blobdiff_plain;f=src%2Fcom%2Fhughes%2Fandroid%2Fdictionary%2Fengine%2FRowBase.java;fp=src%2Fcom%2Fhughes%2Fandroid%2Fdictionary%2Fengine%2FRowBase.java;h=907bb3a83bd62ea7a65dcc63f54f8f06857db63f;hb=de4c14c13a4ba1cba092f6d393bf1d39a3d2d709;hp=8896c88c00ceacc6560de71d5db5381e81496ea4;hpb=5b8a64dbe7a0d253a672e1dd639361a26a119606;p=Dictionary.git diff --git a/src/com/hughes/android/dictionary/engine/RowBase.java b/src/com/hughes/android/dictionary/engine/RowBase.java index 8896c88..907bb3a 100644 --- a/src/com/hughes/android/dictionary/engine/RowBase.java +++ b/src/com/hughes/android/dictionary/engine/RowBase.java @@ -151,6 +151,8 @@ public abstract class RowBase extends IndexedObject { return new TokenRow(raf, listIndex, index, rowType == 1); } else if (rowType == 2) { return new TextEntry.Row(raf, listIndex, index); + } else if (rowType == 4) { + return new HtmlEntry.Row(raf, listIndex, index); } throw new RuntimeException("Invalid rowType:" + rowType); } @@ -164,6 +166,8 @@ public abstract class RowBase extends IndexedObject { raf.writeByte(tokenRow.hasMainEntry ? 1 : 3); } else if (t instanceof TextEntry.Row) { raf.writeByte(2); + } else if (t instanceof HtmlEntry.Row) { + raf.writeByte(4); } raf.writeInt(t.referenceIndex); }