Commits

Tobias Duehr  committed b156ba9

SourceBrowserAvitivity didn't accept the selected branch - is now set initially
in RepositoryActivity

  • Participants
  • Parent commits 82abb3a
  • Tags release-v2.1

Comments (0)

Files changed (2)

File src/com/saibotd/bitbeaker/RepositoryActivity.java

 	    switch (item.getItemId()) {
 		    case R.id.menu_source:
 		    	Intent sourceIntent = new Intent(this, SourceBrowserActivity.class);
+		    	b.putString("branch", branches[0]);
 				sourceIntent.putExtras(b);
 				startActivity(sourceIntent);
 		        return true;

File src/com/saibotd/bitbeaker/SourceBrowserActivity.java

         owner = b.getString("owner");
         subdir = b.getString("subdir");
         branches = b.getStringArray("branches");
-        branch = branches[0];
+        branch = b.getString("branch");
         setContentView(R.layout.repositories);
         ActionBar actionBar = getSupportActionBar();
         setTitle(slug + " ("+branch+")");