Skip to content

Commit

Permalink
Merge pull request MoSync#479 from chovus/ThreeThree
Browse files Browse the repository at this point in the history
MOSYNC-3256: HelloMAUI test app fails to update the input box when input something and press ok.
  • Loading branch information
milesm committed May 28, 2013
2 parents 3dd3b1a + fc0b31e commit 30c910b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ public void onClick(View v)

// Write text directly to the MoSync memory
char[] ca = output.toCharArray();
ByteBuffer buffer = mosyncThread.getMemorySlice(mOutputMemPtr, (ca.length + 1) * 2);
ByteBuffer buffer = mosyncThread.getMemorySlice(mOutputMemPtr, (ca.length + 1) * 2).order(null);

// NOTE: THIS DIFFERS FROM WHAT IS BEING OUTPUT IN THE mCancelButton check,
// where bytes are used instead. Really strange -- is this wchars or smthg? Why?
Expand Down Expand Up @@ -367,7 +367,7 @@ public void onClick(View v)

// Write text directly to the MoSync memory
byte[] ba = output.getBytes();
ByteBuffer buffer = mosyncThread.getMemorySlice(mOutputMemPtr, ba.length + 1);
ByteBuffer buffer = mosyncThread.getMemorySlice(mOutputMemPtr, ba.length + 1).order(null);
buffer.put(ba);
buffer.put((byte)0);

Expand Down

0 comments on commit 30c910b

Please sign in to comment.