commit | 23a357d71d5d1a404975375fd376618a4fd2a596 | [log] [tgz] |
---|---|---|
author | Ken Wakasa <kwakasa@google.com> | Fri Oct 24 19:47:26 2014 +0900 |
committer | Ken Wakasa <kwakasa@google.com> | Fri Oct 24 19:47:26 2014 +0900 |
tree | f98b9a164e42f2fe808e319cf26bfbd133e177f0 | |
parent | dd5737b0fa3bf68f90534457ed8d23437caf5420 [diff] |
Small cleanup Change-Id: I2b81450f99d7b4493ba0fc5e502f4333b8db48cd
diff --git a/common/src/com/android/inputmethod/latin/common/Constants.java b/common/src/com/android/inputmethod/latin/common/Constants.java index a0cbd2c..9a244d4 100644 --- a/common/src/com/android/inputmethod/latin/common/Constants.java +++ b/common/src/com/android/inputmethod/latin/common/Constants.java
@@ -296,8 +296,6 @@ return "[" + sb + "]"; } - public static final int MAX_INT_BIT_COUNT = 32; - /** * Screen metrics (a.k.a. Device form factor) constants of * {@link com.android.inputmethod.latin.R.integer#config_screen_metrics}.
diff --git a/java/src/com/android/inputmethod/keyboard/emoji/EmojiCategory.java b/java/src/com/android/inputmethod/keyboard/emoji/EmojiCategory.java index 0e8ce7f..c8e832b 100644 --- a/java/src/com/android/inputmethod/keyboard/emoji/EmojiCategory.java +++ b/java/src/com/android/inputmethod/keyboard/emoji/EmojiCategory.java
@@ -271,7 +271,7 @@ } private static final Long getCategoryKeyboardMapKey(final int categoryId, final int id) { - return (((long) categoryId) << Constants.MAX_INT_BIT_COUNT) | id; + return (((long) categoryId) << Integer.SIZE) | id; } public DynamicGridKeyboard getKeyboard(final int categoryId, final int id) {