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

    if (getIntent().getExtras() == null) {
      finish();
      return;
    }

    int tmdbId = getIntent().getExtras().getInt(MovieDetailsFragment.InitBundle.TMDB_ID);
    if (tmdbId == 0) {
      finish();
      return;
    }

    setupViews();

    if (savedInstanceState == null) {
      MovieDetailsFragment f = MovieDetailsFragment.newInstance(tmdbId);
      getSupportFragmentManager().beginTransaction().add(R.id.content_frame, f).commit();
    }
  }
 @Override
 protected void setupActionBar() {
   super.setupActionBar();
   ActionBar actionBar = getSupportActionBar();
   if (actionBar != null) {
     actionBar.setDisplayHomeAsUpEnabled(true);
     actionBar.setDisplayShowTitleEnabled(false);
   }
 }