Fix OOBE in JB backword
Bug: 10905948 Change-Id: I4e953296ce3067d05fc5759375f40513580484a6main
parent
f068c6e656
commit
d1ae03046c
|
@ -206,7 +206,14 @@ public final class EmojiKeyboardView extends LinearLayout implements OnTabChange
|
|||
}
|
||||
|
||||
public int getCategoryPageSize(int categoryId) {
|
||||
return mShownCategories.get(categoryId).mPageCount;
|
||||
for (final CategoryProperties prop : mShownCategories) {
|
||||
if (prop.mCategoryId == categoryId) {
|
||||
return prop.mPageCount;
|
||||
}
|
||||
}
|
||||
Log.w(TAG, "Invalid category id: " + categoryId);
|
||||
// Should not reach here.
|
||||
return 0;
|
||||
}
|
||||
|
||||
public void setCurrentCategoryId(int categoryId) {
|
||||
|
|
Loading…
Reference in New Issue