aboutsummaryrefslogtreecommitdiff
path: root/src/com/google/android/droiddriver/util/ActivityUtils.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/google/android/droiddriver/util/ActivityUtils.java')
-rw-r--r--src/com/google/android/droiddriver/util/ActivityUtils.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/com/google/android/droiddriver/util/ActivityUtils.java b/src/com/google/android/droiddriver/util/ActivityUtils.java
index 466caf9..c0f553f 100644
--- a/src/com/google/android/droiddriver/util/ActivityUtils.java
+++ b/src/com/google/android/droiddriver/util/ActivityUtils.java
@@ -19,12 +19,21 @@ package com.google.android.droiddriver.util;
import android.app.Activity;
import com.google.android.droiddriver.instrumentation.InstrumentationDriver;
-import com.google.common.base.Supplier;
/**
* Static helper methods for retrieving activities.
*/
public class ActivityUtils {
+ public interface Supplier<T> {
+ /**
+ * Retrieves an instance of the appropriate type. The returned object may or
+ * may not be a new instance, depending on the implementation.
+ *
+ * @return an instance of the appropriate type
+ */
+ T get();
+ }
+
private static Supplier<Activity> runningActivitySupplier;
/**