mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-02-03 13:04:27 +01:00
Rename max length constant for text injection
To avoid confusion with the max text size for clipboard, rename the constant limiting the text injection length.
This commit is contained in:
@@ -66,7 +66,7 @@ public class ControlMessageReaderTest {
|
||||
ByteArrayOutputStream bos = new ByteArrayOutputStream();
|
||||
DataOutputStream dos = new DataOutputStream(bos);
|
||||
dos.writeByte(ControlMessage.TYPE_INJECT_TEXT);
|
||||
byte[] text = new byte[ControlMessageReader.TEXT_MAX_LENGTH];
|
||||
byte[] text = new byte[ControlMessageReader.INJECT_TEXT_MAX_LENGTH];
|
||||
Arrays.fill(text, (byte) 'a');
|
||||
dos.writeShort(text.length);
|
||||
dos.write(text);
|
||||
|
||||
Reference in New Issue
Block a user