Skip to content

Commit

Permalink
Merge pull request #95 from daniel-kullmann/view-as-document
Browse files Browse the repository at this point in the history
Fixed "View as document" in OrgContextMenu and ViewNodeDetailsActivity.
  • Loading branch information
matburt committed May 26, 2011
2 parents e83f5d6 + f3a4191 commit 2958d38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Expand Up @@ -108,7 +108,8 @@ public void populateDisplay() {
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)) {
Expand Down
3 changes: 2 additions & 1 deletion src/com/matburt/mobileorg/OrgContextMenu.java
Expand Up @@ -57,7 +57,8 @@ public void onClick(View v) {
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) {
Expand Down

0 comments on commit 2958d38

Please sign in to comment.