Commits

Ville Saalo committed 28d1f5e Merge

Comments (0)

Files changed (3)

res/layout/changeset.xml

     android:layout_height="match_parent">
 
     <LinearLayout
+        android:orientation="vertical"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_margin="4dip">
             android:text="@string/description">
         </TextView>
 
+        <TextView
+            android:layout_width="wrap_content"
+            android:layout_height="match_parent"
+            android:id="@+id/changeset_branch"
+            android:text="@string/nothing">
+        </TextView>
+
     </LinearLayout>
 
     <LinearLayout

res/values/strings.xml

     
     <!-- ChangesetActivity.java -->
     <string name="changeset">Changeset:</string>
+    <string name="branch_label">Branch:</string>
     
     <!-- LoginActivity.java -->
     <string name="logging_in">Logging in&#8230;</string>

src/com/saibotd/bitbeaker/ChangesetActivity.java

 			e1.printStackTrace();
 		}
 		TextView message = (TextView) findViewById(R.id.changeset_message);
+		TextView branch = (TextView) findViewById(R.id.changeset_branch);
 		try {
 			message.setText(mData.getString("message"));
+			String branch_tmp = mData.getString("branch");
+			if (!branch_tmp.equals("null")) branch.setText(this.getString(R.string.branch_label)+" "+branch_tmp);
 		} catch (JSONException e) {
 			// TODO Auto-generated catch block
 			e.printStackTrace();
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.