commit
2e5428d531
1 changed files with 3 additions and 3 deletions
|
@ -372,7 +372,7 @@ public abstract class MenuBottomSheetDialogFragment extends BottomSheetDialogFra
|
||||||
|
|
||||||
private void setupDismissButton() {
|
private void setupDismissButton() {
|
||||||
dismissButton = buttonsContainer.findViewById(R.id.dismiss_button);
|
dismissButton = buttonsContainer.findViewById(R.id.dismiss_button);
|
||||||
dismissButton.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, getDismissButtonHeight()));
|
dismissButton.getLayoutParams().height = getDismissButtonHeight();
|
||||||
int buttonTextId = getDismissButtonTextId();
|
int buttonTextId = getDismissButtonTextId();
|
||||||
if (buttonTextId != DEFAULT_VALUE) {
|
if (buttonTextId != DEFAULT_VALUE) {
|
||||||
UiUtilities.setupDialogButton(nightMode, dismissButton, getDismissButtonType(), buttonTextId);
|
UiUtilities.setupDialogButton(nightMode, dismissButton, getDismissButtonType(), buttonTextId);
|
||||||
|
@ -389,7 +389,7 @@ public abstract class MenuBottomSheetDialogFragment extends BottomSheetDialogFra
|
||||||
|
|
||||||
private void setupRightButton() {
|
private void setupRightButton() {
|
||||||
rightButton = buttonsContainer.findViewById(R.id.right_bottom_button);
|
rightButton = buttonsContainer.findViewById(R.id.right_bottom_button);
|
||||||
rightButton.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, getRightButtonHeight()));
|
rightButton.getLayoutParams().height = getRightButtonHeight();
|
||||||
int buttonTextId = getRightBottomButtonTextId();
|
int buttonTextId = getRightBottomButtonTextId();
|
||||||
if (buttonTextId != DEFAULT_VALUE) {
|
if (buttonTextId != DEFAULT_VALUE) {
|
||||||
UiUtilities.setupDialogButton(nightMode, rightButton, getRightBottomButtonType(), buttonTextId);
|
UiUtilities.setupDialogButton(nightMode, rightButton, getRightBottomButtonType(), buttonTextId);
|
||||||
|
@ -412,7 +412,7 @@ public abstract class MenuBottomSheetDialogFragment extends BottomSheetDialogFra
|
||||||
|
|
||||||
protected void setupThirdButton() {
|
protected void setupThirdButton() {
|
||||||
thirdButton = buttonsContainer.findViewById(R.id.third_button);
|
thirdButton = buttonsContainer.findViewById(R.id.third_button);
|
||||||
thirdButton.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, getThirdButtonHeight()));
|
thirdButton.getLayoutParams().height = getThirdButtonHeight();
|
||||||
int buttonTextId = getThirdBottomButtonTextId();
|
int buttonTextId = getThirdBottomButtonTextId();
|
||||||
if (buttonTextId != DEFAULT_VALUE) {
|
if (buttonTextId != DEFAULT_VALUE) {
|
||||||
UiUtilities.setupDialogButton(nightMode, thirdButton, getThirdBottomButtonType(), buttonTextId);
|
UiUtilities.setupDialogButton(nightMode, thirdButton, getThirdBottomButtonType(), buttonTextId);
|
||||||
|
|
Loading…
Reference in a new issue