Browse files

Fix "View as document" in OrgContextMenu and ViewNodeDetailsActivity.…

… Both node name and payload are now displayed.
  • Loading branch information...
1 parent e3629fa commit f3a41911f75cb883edf938214bbd80e91e1113fb Daniel Kullmann committed May 22, 2011
View
3 src/com/matburt/mobileorg/Capture/ViewNodeDetailsActivity.java
@@ -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)) {
View
3 src/com/matburt/mobileorg/OrgContextMenu.java
@@ -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 f3a4191

Please sign in to comment.