aboutsummaryrefslogtreecommitdiff
path: root/src/com/google/android/droiddriver/uiautomation/UiAutomationDriver.java
diff options
context:
space:
mode:
authorKevin Jin <kjin@google.com>2014-04-18 15:28:36 -0700
committerKevin Jin <kjin@google.com>2014-04-21 16:33:41 -0700
commit17342a5115d7575d44a99fed9c7032e3ab316dcc (patch)
tree029c90e6a75bab41e758dc5fd9bb609da852846c /src/com/google/android/droiddriver/uiautomation/UiAutomationDriver.java
parent476f54bb2b1219b2a83960663860c76f172ba670 (diff)
downloaddroiddriver-17342a5115d7575d44a99fed9c7032e3ab316dcc.tar.gz
remove deps on Guava
This is to simplify the build and deployment set-up for DroidDriver clients. Change-Id: I02238d8721d4d3a505a851138c40cb086d2ff11f
Diffstat (limited to 'src/com/google/android/droiddriver/uiautomation/UiAutomationDriver.java')
-rw-r--r--src/com/google/android/droiddriver/uiautomation/UiAutomationDriver.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/com/google/android/droiddriver/uiautomation/UiAutomationDriver.java b/src/com/google/android/droiddriver/uiautomation/UiAutomationDriver.java
index ad30693..d465816 100644
--- a/src/com/google/android/droiddriver/uiautomation/UiAutomationDriver.java
+++ b/src/com/google/android/droiddriver/uiautomation/UiAutomationDriver.java
@@ -28,7 +28,6 @@ import com.google.android.droiddriver.base.BaseDroidDriver;
import com.google.android.droiddriver.exceptions.TimeoutException;
import com.google.android.droiddriver.uiautomation.UiAutomationContext.UiAutomationCallable;
import com.google.android.droiddriver.util.Logs;
-import com.google.common.primitives.Longs;
/**
* Implementation of DroidDriver that is driven via the accessibility layer.
@@ -92,7 +91,7 @@ public class UiAutomationDriver extends BaseDroidDriver {
String.format("Timed out after %d milliseconds waiting for root AccessibilityNodeInfo",
timeoutMillis));
}
- SystemClock.sleep(Longs.min(250, remainingMillis));
+ SystemClock.sleep(Math.min(250, remainingMillis));
}
}