Skip to content

Commit

Permalink
Fix On/OFF switch
Browse files Browse the repository at this point in the history
  • Loading branch information
ben12 committed Oct 17, 2017
1 parent 06f0c58 commit 06c4b88
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ public SwitchController(final Page parent)
@Override
public void init(final Widget pWidget, final MainViewController pMainViewController)
{
super.init(pWidget, pMainViewController);

// ON/OFF Switch
isOnOff = pWidget.getMappings().isEmpty();

super.init(pWidget, pMainViewController);

if (!isOnOff)
{
initSwitchWithMapping(pWidget.mappingsProperty());
Expand Down

0 comments on commit 06c4b88

Please sign in to comment.