title: Switch not being checked correctly onCreateView
body: <p>I have a switch in a Fragment, whose state depend on the user's actions on this fragment, but also on other fragments.
  Therefore, the state is loaded as follows in <strong>onCreateView()</strong>:</p>
  
  <pre><code>    switch_show_label = (Switch) view.findViewById(R.id.switch_showlabel);
      switch_show_label.setChecked(mListener.isShowLabelChecked());
      print("show label is: " + mListener.isShowLabelChecked() + " " + switch_show_label.isChecked());
      switch_show_label.setOnCheckedChangeListener(this);
  </code></pre>
  
  <p>When the boolean corresponding to the state is changed in another fragment, I can read:</p>
  
  <pre><code>SettingsFragment: show label is: true true
  </code></pre>
  
  <p>Yet the switch is visually <strong>switched off</strong>, and the value "false" is sent back to the main activity...</p>
  
  <p>How can this happen?
  THanks.</p>