Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Commit

Permalink
Merge pull request #14 from jwark/do_not_copy_to_clipboard
Browse files Browse the repository at this point in the history
Android: Do not copy the scanned barcode to the clipboard.
  • Loading branch information
Ryan Willoughby committed Apr 11, 2013
2 parents 3c73e21 + 1d8ee5c commit 15b5cb9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/android/LibraryProject/res/xml/preferences.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
android:title="@string/preferences_vibrate_title"/>
<CheckBoxPreference
android:key="preferences_copy_to_clipboard"
android:defaultValue="true"
android:defaultValue="false"
android:title="@string/preferences_copy_to_clipboard_title"/>
<CheckBoxPreference
android:key="preferences_remember_duplicates"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ protected void onResume() {
}

SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
copyToClipboard = prefs.getBoolean(PreferencesActivity.KEY_COPY_TO_CLIPBOARD, true)
copyToClipboard = prefs.getBoolean(PreferencesActivity.KEY_COPY_TO_CLIPBOARD, false)
&& (intent == null || intent.getBooleanExtra(Intents.Scan.SAVE_HISTORY, true));

beepManager.updatePrefs();
Expand Down
Binary file modified src/android/com.google.zxing.client.android.captureactivity.jar
Binary file not shown.

0 comments on commit 15b5cb9

Please sign in to comment.