]> gitweb.fperrin.net Git - Dictionary.git/blobdiff - src/com/hughes/android/dictionary/engine/RowBase.java
WebView links starting to work (still timing problem).
[Dictionary.git] / src / com / hughes / android / dictionary / engine / RowBase.java
index 8896c88c00ceacc6560de71d5db5381e81496ea4..c83c7cdbd5022d7c59895d98b85164258a67a1bc 100644 (file)
@@ -148,9 +148,11 @@ public abstract class RowBase extends IndexedObject {
       if (rowType == 0) {
         return new PairEntry.Row(raf, listIndex, index);
       } else if (rowType == 1 || rowType == 3) {
-        return new TokenRow(raf, listIndex, index, rowType == 1);
+        return new TokenRow(raf, listIndex, index, /* hasMainEntry */ 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);
     }