package com.genius.groupie.example;

import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.CompoundButton;

import com.genius.groupie.example.databinding.ActivitySettingsBinding;

public class SettingsActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        ActivitySettingsBinding binding = DataBindingUtil.setContentView(this, R.layout.activity_settings);
        final Prefs prefs = Prefs.get(this);

        binding.showBounds.theSwitch.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
            @Override public void onCheckedChanged(CompoundButton compoundButton, boolean showBounds) {
                prefs.setShowBounds(showBounds);
            }
        });

        binding.showOffsets.theSwitch.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
            @Override public void onCheckedChanged(CompoundButton compoundButton, boolean showOffsets) {
                prefs.setShowOffsets(showOffsets);
            }
        });
    }
}

@@ -584,24 +584,171 @@
 get(this);%0A%0A
+        binding.showBounds.theSwitch.setChecked(prefs.getShowBounds());%0A        binding.showOffsets.theSwitch.setChecked(prefs.getShowOffsets());%0A%0A
         bind
@@ -859,32 +859,44 @@
        @Override
+%0A           
  public void onC
@@ -1171,16 +1171,28 @@
 Override
+%0A           
  public 

Initialize SettingsActivity switches correctly: Close #7 (#20)