* commit 'db083a2b25d057f21a22333251ea0a78668e6326': Hide indication bar if only one page
This commit is contained in:
commit
8498002afb
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue