Skip to content
This repository was archived by the owner on Dec 7, 2020. It is now read-only.

Commit 4af4067

Browse files
author
Severi Haverila
committed
Removed line proc.waitFor();, it resulted sometimes in adb device size failure
1 parent b1e2fc0 commit 4af4067

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

library/src/main/java/imagerecognition/ImageRecognition.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,6 @@ private static Dimension getAndroidScreenSize() throws IOException, InterruptedE
332332
while ((line = br.readLine()) != null) {
333333
if (!line.contains("OriginalmUnrestrictedScreen")) { //we do this check for devices with android 5.x+ The adb command returns an extra line with the values 0x0 which must be filtered out.
334334
if (line.contains("mUnrestrictedScreen")) {
335-
proc.waitFor();
336335
String[] tmp = line.split("\\) ");
337336
size = tmp[1].split("x");
338337
}

0 commit comments

Comments
 (0)