Fix OOBE in JB backword

Bug: 10905948
Change-Id: I4e953296ce3067d05fc5759375f40513580484a6
main
Satoshi Kataoka 2013-09-24 21:08:45 +09:00
parent f068c6e656
commit d1ae03046c
1 changed files with 8 additions and 1 deletions

View File

@ -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) {