From 6c0ef1a5be8b4fae3eb94a926f7c2aaaa037880f Mon Sep 17 00:00:00 2001 From: srowen Date: Mon, 15 Mar 2010 09:41:03 +0000 Subject: [PATCH] Ensure share clipboard sends String not SpannableText git-svn-id: https://zxing.googlecode.com/svn/trunk@1244 59b500cc-1b3d-0410-9834-0bbf25fbcc57 --- .../com/google/zxing/client/android/share/ShareActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/com/google/zxing/client/android/share/ShareActivity.java b/android/src/com/google/zxing/client/android/share/ShareActivity.java index 8d83529de..084f84c20 100755 --- a/android/src/com/google/zxing/client/android/share/ShareActivity.java +++ b/android/src/com/google/zxing/client/android/share/ShareActivity.java @@ -97,7 +97,7 @@ public final class ShareActivity extends Activity { Intent intent = new Intent(Intents.Encode.ACTION); intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET); intent.putExtra(Intents.Encode.TYPE, Contents.Type.TEXT); - intent.putExtra(Intents.Encode.DATA, clipboard.getText()); + intent.putExtra(Intents.Encode.DATA, clipboard.getText().toString()); intent.putExtra(Intents.Encode.FORMAT, Contents.Format.QR_CODE); startActivity(intent); }