Commits

Tobias Duehr  committed 82abb3a

Boolean -> boolean
Subtitle in RepositoryActivity shows owner
Pushed version

  • Participants
  • Parent commits 9bd77c7

Comments (0)

Files changed (2)

File AndroidManifest.xml

 <?xml version="1.0" encoding="utf-8"?>
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
       package="com.saibotd.bitbeaker"
-      android:versionName="2.0" android:versionCode="10">
+      android:versionName="2.1" android:versionCode="11">
     <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="14"/>
     <uses-permission android:name="android.permission.INTERNET"></uses-permission>
     <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

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

 	private String owner;
 	private String scm;
 	private String[] branches = new String[0];
-	private Boolean firstCall;
-	private Boolean hasIssues = false;
-	private Boolean hasWiki = false;
+	private boolean firstCall;
+	private boolean hasIssues = false;
+	private boolean hasWiki = false;
 	
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         owner = b.getString("owner");
         firstCall = true;
         setTitle(slug);
+        getSupportActionBar().setSubtitle(owner);
         AsyncLoader asyncLoader = new AsyncLoader();
         asyncLoader.execute("https://api.bitbucket.org/1.0/repositories/"+ owner +"/"+ slug +"/");
         listBranches();
 				if(jsonObject.has("has_issues") && jsonObject.getBoolean("has_issues")) hasIssues = true;
 				invalidateOptionsMenu();
 				setTitle(jsonObject.getString("name"));
-				getSupportActionBar().setSubtitle(jsonObject.getString("owner") + " / " + jsonObject.getString("slug"));
 				String desc = "";
 				if(!jsonObject.getString("description").trim().equals("")) desc += jsonObject.getString("description");
 				if(!jsonObject.getString("website").trim().equals("") && !jsonObject.getString("website").trim().equals("null")) desc += "<br><a href='"+ jsonObject.getString("website") +"'>" + jsonObject.getString("website") + "</a>";