mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
am a4913994
: Hide indication bar if only one page
* commit 'a4913994c2904eefa861782966a288959b216713': Hide indication bar if only one page
This commit is contained in:
commit
db083a2b25
@ -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
Block a user