package de.avalax.mtg_insight.presentation.card;

import android.os.Bundle;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.app.ActionBarDrawerToggle;
import android.support.v7.internal.widget.AdapterViewCompat;
import android.support.v7.widget.Toolbar;
import android.view.Menu;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;

import de.avalax.mtg_insight.R;

public class CardStageActivity extends ActionBarActivity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_card_stage);

        Toolbar toolbar = (Toolbar) findViewById(R.id.card_stage_toolbar);
        setSupportActionBar(toolbar);

        DrawerLayout mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);
        ActionBarDrawerToggle mDrawerToggle = new ActionBarDrawerToggle(
                this,  mDrawerLayout, toolbar,
                R.string.navigation_drawer_open, R.string.navigation_drawer_close
        );
        mDrawerLayout.setDrawerListener(mDrawerToggle);
        getSupportActionBar().setDisplayHomeAsUpEnabled(true);
        getSupportActionBar().setHomeButtonEnabled(true);
        mDrawerToggle.syncState();

        Bundle extras = getIntent().getExtras();
        if (savedInstanceState == null && extras != null && extras.getBoolean("CARD_DEMO")) {
            getSupportFragmentManager().beginTransaction()
                    .replace(R.id.fragment_container, new CardDemoFragment()).commit();
        }
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.menu_card_stage, menu);
        return true;
    }
}
@@ -248,202 +248,48 @@
 .v7.
-internal.widget.AdapterViewCompat;%0Aimport android.support.v7.widget.Toolbar;%0Aimport android.view.Menu;%0Aimport android.view.View;%0Aimport android.widget.AdapterView;%0Aimport android.widget.ListView
+widget.Toolbar;%0Aimport android.view.Menu
 ;%0A%0Ai

optimize imports