Skip to content
This repository was archived by the owner on Oct 23, 2020. It is now read-only.

Bug/add menu button #333

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,8 @@ protected void onLayout(boolean changed, int l, int t, int r, int b) {
for (int i = mButtonsCount - 1; i >= 0; i--) {
View child = getChildAt(i);

if(!(child instanceof FloatingActionButton)) continue;

if (child == mImageToggle) continue;

FloatingActionButton fab = (FloatingActionButton) child;
Expand Down Expand Up @@ -959,7 +961,7 @@ public int getMenuButtonColorRipple() {
}

public void addMenuButton(FloatingActionButton fab) {
addView(fab, mButtonsCount - 2);
addView(fab);
mButtonsCount++;
addLabel(fab);
}
Expand Down