aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/makedict/BinaryDictInputOutput.java
diff options
context:
space:
mode:
authorYuichiro Hanada <yhanada@google.com>2012-10-03 17:23:39 +0900
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-10-03 02:19:41 -0700
commita853356b82e2dc74962243e3143c0ff7a33f3c20 (patch)
tree02b5d9ddaccdf142ed3ea804cdce6414346ca7e8 /java/src/com/android/inputmethod/latin/makedict/BinaryDictInputOutput.java
parent7223cc2ef1d7fd4ad4ab62166114b36ce7313c55 (diff)
downloadlatinime-a853356b82e2dc74962243e3143c0ff7a33f3c20.tar.gz
latinime-a853356b82e2dc74962243e3143c0ff7a33f3c20.tar.xz
latinime-a853356b82e2dc74962243e3143c0ff7a33f3c20.zip
Add isDeletedGroup.
Change-Id: I83f09c068868e5e6e1b46f494a6ef957f0b466d8
Diffstat (limited to 'java/src/com/android/inputmethod/latin/makedict/BinaryDictInputOutput.java')
-rw-r--r--java/src/com/android/inputmethod/latin/makedict/BinaryDictInputOutput.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/makedict/BinaryDictInputOutput.java b/java/src/com/android/inputmethod/latin/makedict/BinaryDictInputOutput.java
index 14fc36681..b9fd15fa0 100644
--- a/java/src/com/android/inputmethod/latin/makedict/BinaryDictInputOutput.java
+++ b/java/src/com/android/inputmethod/latin/makedict/BinaryDictInputOutput.java
@@ -402,6 +402,14 @@ public final class BinaryDictInputOutput {
}
/**
+ * Helper method to check whether the group is deleted.
+ */
+ public static boolean isDeletedGroup(final int flags, final FormatOptions formatOptions) {
+ return formatOptions.mSupportsDynamicUpdate
+ && ((flags & FormatSpec.MASK_GROUP_ADDRESS_TYPE) == FormatSpec.FLAG_IS_DELETED);
+ }
+
+ /**
* Helper method to check whether the dictionary can be updated dynamically.
*/
public static boolean supportsDynamicUpdate(final FormatOptions options) {