Commits

Juha Kuitunen committed 423ca38

show id in issues

  • Participants
  • Parent commits 4f85f66

Comments (0)

Files changed (2)

res/layout/issue.xml

             android:focusableInTouchMode="true"
             android:orientation="vertical" >
 
-            <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/issue_title" android:textSize="18dip" android:text="@string/nothing"></TextView>
+            <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/issue_title" android:textSize="18dip" android:text="@string/nothing" android:textStyle="bold"></TextView>
             <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/issue_status" android:text="@string/nothing" android:paddingTop="4dip"></TextView>
         </LinearLayout>
     </ScrollView>

src/com/saibotd/bitbeaker/IssueActivity.java

 
 		ActionBar actionBar = getSupportActionBar();
 		setTitle(slug);
-		actionBar.setSubtitle("Issue: " + title);
+		actionBar.setSubtitle("Issue #" + id);
 
 		AsyncLoader asyncLoader = new AsyncLoader();
 		asyncLoader.execute("https://api.bitbucket.org/1.0/repositories/"+ owner +"/"+ slug +"/issues/" + id);
 	public void AsyncLoaderDone(String result) {
 		super.AsyncLoaderDone(result);
 		JSONObject jsonObject;
+		TextView issue_title = (TextView) findViewById(R.id.issue_title);
 		TextView info = (TextView) findViewById(R.id.issue_status);
 		try {
 			jsonObject = new JSONObject(result);
 
+			issue_title.setText(title);
+
 			String infotext = "Status:\t" + jsonObject.getString("status");
 			infotext = infotext + "\nType:\t\t" + jsonObject.getJSONObject("metadata").getString("kind");
 			infotext = infotext + "\nPriority:\t" + jsonObject.getString("priority");