1
0

followup prev

This commit is contained in:
Sander van Grieken
2024-02-21 12:03:37 +01:00
parent d12ce00417
commit dc3ff908b8

View File

@@ -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 {