Skip to content

Commit

Permalink
fix #1730: Text Error in FormToggleButton fixed (#1731)
Browse files Browse the repository at this point in the history
Co-authored-by: PatelVatsalB21 <vatsal9974702102@gmail.com>
  • Loading branch information
PatelVatsalB21 and PatelVatsalB21 authored Jun 6, 2023
1 parent 758b67c commit ad4dbb6
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@ public FormToggleButton(Context context, String name) {
switchButton.setLayoutParams(weightedLayoutParams);
switchButton.setGravity(Gravity.CENTER_HORIZONTAL);
switchButton.setSwitchMinWidth(50);
switchButton.setShowText(true);
switchButton.setChecked(false);
switchButton.setTextOn("True");
switchButton.setTextOff("False");
switchButton.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton compoundButton, boolean b) {
Expand Down

0 comments on commit ad4dbb6

Please sign in to comment.