am 8498002a: am db083a2b: am a4913994: Hide indication bar if only one page
* commit '8498002afb7e8a76552aca89e9fb1beeabd76349': Hide indication bar if only one pagemain
commit
bbc6908670
|
@ -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 New Issue