diff options
author | 2013-10-01 09:51:50 -0700 | |
---|---|---|
committer | 2013-10-01 09:51:50 -0700 | |
commit | db083a2b25d057f21a22333251ea0a78668e6326 (patch) | |
tree | 9a25830b28c689b476a72e1638849a074f5dbd58 /java | |
parent | d00e48656b02ff49fc834ed6762dc194d00b42ad (diff) | |
parent | a4913994c2904eefa861782966a288959b216713 (diff) | |
download | latinime-db083a2b25d057f21a22333251ea0a78668e6326.tar.gz latinime-db083a2b25d057f21a22333251ea0a78668e6326.tar.xz latinime-db083a2b25d057f21a22333251ea0a78668e6326.zip |
am a4913994: Hide indication bar if only one page
* commit 'a4913994c2904eefa861782966a288959b216713':
Hide indication bar if only one page
Diffstat (limited to 'java')
-rw-r--r-- | java/src/com/android/inputmethod/keyboard/EmojiCategoryPageIndicatorView.java | 5 |
1 files 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; } |