am db083a2b: am a4913994: Hide indication bar if only one page

* commit 'db083a2b25d057f21a22333251ea0a78668e6326':
  Hide indication bar if only one page
This commit is contained in:
Satoshi Kataoka 2013-10-09 17:53:37 -07:00 committed by Android Git Automerger
commit 8498002afb

View file

@ -50,8 +50,9 @@ public class EmojiCategoryPageIndicatorView extends LinearLayout {
@Override @Override
protected void onDraw(Canvas canvas) { protected void onDraw(Canvas canvas) {
if (mCategoryPageSize == 0) { if (mCategoryPageSize <= 1) {
// If the category is not set yet, just clear and return. // If the category is not set yet or contains only one category,
// just clear and return.
canvas.drawColor(0); canvas.drawColor(0);
return; return;
} }