parent
dd5737b0fa
commit
23a357d71d
|
@ -296,8 +296,6 @@ public final class Constants {
|
||||||
return "[" + sb + "]";
|
return "[" + sb + "]";
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final int MAX_INT_BIT_COUNT = 32;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Screen metrics (a.k.a. Device form factor) constants of
|
* Screen metrics (a.k.a. Device form factor) constants of
|
||||||
* {@link com.android.inputmethod.latin.R.integer#config_screen_metrics}.
|
* {@link com.android.inputmethod.latin.R.integer#config_screen_metrics}.
|
||||||
|
|
|
@ -271,7 +271,7 @@ final class EmojiCategory {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final Long getCategoryKeyboardMapKey(final int categoryId, final int id) {
|
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) {
|
public DynamicGridKeyboard getKeyboard(final int categoryId, final int id) {
|
||||||
|
|
Loading…
Reference in New Issue