1. Micha Kops
  2. bitbeaker

Commits

Tobias Duehr  committed b156ba9

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

Comments (0)

Files changed (2)

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

View file
  • Ignore whitespace
  • Hide word diff
 	    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 Modified

View file
  • Ignore whitespace
  • Hide word diff
         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+")");