followup prev
This commit is contained in:
@@ -60,6 +60,7 @@ public class SimpleScannerActivity extends Activity implements ZXingScannerView.
|
||||
// limit size of content. avoid https://developer.android.com/reference/android/os/TransactionTooLargeException.html
|
||||
if (clipboardText.length() > 512 * 1024) {
|
||||
Toast.makeText(SimpleScannerActivity.this, "Clipboard contents too large.", Toast.LENGTH_SHORT).show();
|
||||
return;
|
||||
}
|
||||
SimpleScannerActivity.this.setResultAndClose(clipboardText);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user