am d1ae0304: Fix OOBE in JB backword

* commit 'd1ae03046c1b502117129831286ed4ea0828740f':
  Fix OOBE in JB backword
main
Satoshi Kataoka 2013-09-24 05:20:10 -07:00 committed by Android Git Automerger
commit 8d7365d4c0
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) { 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) { public void setCurrentCategoryId(int categoryId) {