File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
gwt-material/src/main/java/gwt/material/design/client/ui Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -90,18 +90,13 @@ public MaterialSwitch(boolean value) {
9090 @ Override
9191 protected void onLoad () {
9292 super .onLoad ();
93- if (offLabel .getText () != null && !offLabel .getText ().isEmpty ()) {
94- label .add (offLabel );
95- }
93+ label .add (offLabel );
9694 label .add (input );
9795 label .add (span );
9896 add (label );
9997 add (lblError );
10098 lblError .getElement ().getStyle ().setMarginTop (16 , Unit .PX );
101-
102- if (onLabel .getText () != null && !onLabel .getText ().isEmpty ()) {
103- label .add (onLabel );
104- }
99+ label .add (onLabel );
105100
106101 // register click handler here in order to have it at first position
107102 // and therefore it will deal with clicks as first and setup the value
You can’t perform that action at this time.
0 commit comments