From a4913994c2904eefa861782966a288959b216713 Mon Sep 17 00:00:00 2001 From: Satoshi Kataoka Date: Tue, 1 Oct 2013 16:24:58 +0900 Subject: [PATCH] Hide indication bar if only one page Bug: 10923117 Change-Id: If81bf07ba2e7c4fff44a8832f98b4a393c15edc7 --- .../inputmethod/keyboard/EmojiCategoryPageIndicatorView.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/java/src/com/android/inputmethod/keyboard/EmojiCategoryPageIndicatorView.java b/java/src/com/android/inputmethod/keyboard/EmojiCategoryPageIndicatorView.java index fed134eb9..e23131a30 100644 --- a/java/src/com/android/inputmethod/keyboard/EmojiCategoryPageIndicatorView.java +++ b/java/src/com/android/inputmethod/keyboard/EmojiCategoryPageIndicatorView.java @@ -50,8 +50,9 @@ public class EmojiCategoryPageIndicatorView extends LinearLayout { @Override protected void onDraw(Canvas canvas) { - if (mCategoryPageSize == 0) { - // If the category is not set yet, just clear and return. + if (mCategoryPageSize <= 1) { + // If the category is not set yet or contains only one category, + // just clear and return. canvas.drawColor(0); return; }