package com.mypodcasts;

import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.ListView;

import com.mypodcasts.podcasts.EpisodesAdapter;
import com.mypodcasts.rss.Episode;

import java.util.ArrayList;

import roboguice.activity.RoboActivity;
import roboguice.inject.ContentView;
import roboguice.inject.InjectView;

@ContentView(R.layout.activity_main)
public class MainActivity extends RoboActivity {

  @InjectView(R.id.episodesListView)
  ListView episodesListView;

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    episodesListView.setAdapter(new EpisodesAdapter(new ArrayList<Episode>(), getLayoutInflater()));
  }

  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
    getMenuInflater().inflate(R.menu.menu_main, menu);
    return true;
  }

  @Override
  public boolean onOptionsItemSelected(MenuItem item) {
    // Handle action bar item clicks here. The action bar will
    // automatically handle clicks on the Home/Up button, so long
    // as you specify a parent activity in AndroidManifest.xml.
    int id = item.getItemId();

    //noinspection SimplifiableIfStatement
    if (id == R.id.action_settings) {
      return true;
    }

    return super.onOptionsItemSelected(item);
  }
}

@@ -48,64 +48,8 @@
 le;%0A
-import android.view.Menu;%0Aimport android.view.MenuItem;%0A
 impo
@@ -674,597 +674,7 @@
 %0A  %7D
-%0A%0A  @Override%0A  public boolean onCreateOptionsMenu(Menu menu) %7B%0A    getMenuInflater().inflate(R.menu.menu_main, menu);%0A    return true;%0A  %7D%0A%0A  @Override%0A  public boolean onOptionsItemSelected(MenuItem item) %7B%0A    // Handle action bar item clicks here. The action bar will%0A    // automatically handle clicks on the Home/Up button, so long%0A    // as you specify a parent activity in AndroidManifest.xml.%0A    int id = item.getItemId();%0A%0A    //noinspection SimplifiableIfStatement%0A    if (id == R.id.action_settings) %7B%0A      return true;%0A    %7D%0A%0A    return super.onOptionsItemSelected(item);%0A  %7D
 %0A%7D%0A

Remove unused actionbar