package com.example.octoissues;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.NumberPicker;

public class RepoSelectActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        setContentView(R.layout.repo_select_view);
        NumberPicker picker = (NumberPicker) findViewById(R.id.repoPicker);
        String[] values = new String[]{"first", "second"};
        picker.setMinValue(1);
        picker.setMaxValue(2);
        picker.setWrapSelectorWheel(false);
        picker.setDisplayedValues(values);
        picker.setValue(1);
        Button signin = (Button) findViewById(R.id.view_issues);
        signin.setTextSize(30);    
    }
    
     @Override
    public boolean onCreateOptionsMenu(Menu menu) {
    	// TODO Auto-generated method stub
    	getMenuInflater().inflate(R.menu.issues_menu, menu);
    	return super.onCreateOptionsMenu(menu);
    }
    
    
    public void onClickSignIn(View view) {
    	Intent intent = new Intent(this, IssuesListActivity.class);
    	startActivity(intent);
    }
}

@@ -26,16 +26,46 @@
 ssues;%0A%0A
+import android.app.ActionBar;%0A
 import a
@@ -116,16 +116,41 @@
 Intent;%0A
+import android.os.Build;%0A
 import a
@@ -213,19 +213,77 @@
 id.view.
-Vie
+MenuItem;%0Aimport android.view.View;%0Aimport android.view.Windo
 w;%0Aimpor
@@ -515,24 +515,72 @@
 e);%0A        
+requestWindowFeature(Window.FEATURE_ACTION_BAR);
 %0A        set
@@ -619,16 +619,197 @@
 _view);%0A
+%09%09ActionBar actionBar = getActionBar();%0A%09%09if (Build.VERSION.SDK_INT %3E Build.VERSION_CODES.ICE_CREAM_SANDWICH) %7B%0A%09        actionBar.setHomeButtonEnabled(true);%0A%09%09%7D%0A        %0A        %0A
         
@@ -1295,48 +1295,8 @@
 ) %7B%0A
-    %09// TODO Auto-generated method stub%0A
     
@@ -1400,24 +1400,349 @@
 ;%0A    %7D%0A    
+ %0A    @Override%0A    public boolean onOptionsItemSelected(MenuItem item) %7B%0A    %09switch (item.getItemId()) %7B%0A    %09case R.id.action_settings:%0A    %09%09startActivity(new Intent(this, PrefsActivity.class));%0A    %09%09return true;%0A    %09case R.id.saved_issues:%0A    %09%09return true;%0A    %09%7D%0A    %09return super.onOptionsItemSelected(item);%0A    %7D
 %0A    %0A    pu

Add preferences and saved issue options to action bar