Commits

Anonymous committed 8d551b0 Merge

Merge pull request #95 from daniel-kullmann/view-as-document

Fixed "View as document" in OrgContextMenu and ViewNodeDetailsActivity.

  • Participants
  • Parent commits de935e0, 3745091

Comments (0)

Files changed (2)

File src/com/matburt/mobileorg/Capture/ViewNodeDetailsActivity.java

 	public void onClick(View v) {
 		if (v.equals(mViewAsDocument)) {
 			Intent intent = new Intent(this, SimpleTextDisplay.class);
-			intent.putExtra("txtValue", mNode.nodePayload);
+			String txtValue = mNode.nodeTitle + "\n\n" + mNode.nodePayload;
+			intent.putExtra("txtValue", txtValue );
 			this.startActivity(intent);
 		}
 		if (v.equals(mBody)) {

File src/com/matburt/mobileorg/OrgContextMenu.java

         if (v == this.docButton) {
             textIntent.setClass(this,
                     SimpleTextDisplay.class);
-            textIntent.putExtra("txtValue", thisNode.nodePayload);
+			String txtValue = thisNode.nodeTitle + "\n\n" + thisNode.nodePayload;
+			textIntent.putExtra("txtValue", txtValue );
             textIntent.putExtra("nodeTitle", thisNode.nodeName);
         }
         else if (v == this.docEditButton) {