@Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_edit_list);

    // If should be in two-pane mode, finish to return to main activity
    if (getResources().getBoolean(R.bool.is_dual_pane)) {
      finish();
      return;
    }

    // Setup the Toolbar
    Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
    setSupportActionBar(toolbar);
    getSupportActionBar().setDisplayHomeAsUpEnabled(true);

    mEditListFragment =
        (EditListFragment) getSupportFragmentManager().findFragmentById(R.id.edit_list_fragment);
    // Load in list
    if (getIntent().getSerializableExtra("list") != null) {
      mEditListFragment.loadList((List) getIntent().getSerializableExtra("list"));
    }

    // Setup FAB
    FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
    fab.setOnClickListener(
        new View.OnClickListener() {
          @Override
          public void onClick(View v) {
            mEditListFragment.saveList();
          }
        });

    // Load other UI elements
    mCoordinatorLayout = (CoordinatorLayout) findViewById(R.id.root_view);
  }