Permalink
Browse files

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

Fixed "View as document" in OrgContextMenu and ViewNodeDetailsActivity.
  • Loading branch information...
2 parents e83f5d6 + f3a4191 commit 2958d386a38ae5036e5ce8bba3b75f57d0fc1a3f @matburt committed May 26, 2011
@@ -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)) {
@@ -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) {

0 comments on commit 2958d38

Please sign in to comment.