Esempio n. 1
0
  @Override
  public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
    if (mBroadcasting) {
      return;
    }

    mOption.write(mConfig, mContext, isChecked, this);
  }
Esempio n. 2
0
 private void updateState() {
   mBroadcasting = true;
   mSwitch.setChecked((Boolean) mOption.read(mConfig));
   mBroadcasting = false;
 }