diff options
author | Kevin Jin <kjin@google.com> | 2015-03-13 10:27:53 -0700 |
---|---|---|
committer | Kevin Jin <kjin@google.com> | 2015-03-13 10:27:53 -0700 |
commit | 4c349e0101d6b7a1057722aeb21d7955b0eb0aeb (patch) | |
tree | db0eab4b98deb2c1f9e8b850ae69ca831dc18ddd /src/io/appium/droiddriver/util/InstrumentationUtils.java | |
parent | 05fe364c3bc2406e8703f69645a1ef8664b2b4ee (diff) | |
download | droiddriver-4c349e0101d6b7a1057722aeb21d7955b0eb0aeb.tar.gz |
Add CloseKeyboardAction for InstrumentationDriver
Change-Id: I10c0d9cd8c88ccf88f1798a9b0daf7cc8ed796ad
Diffstat (limited to 'src/io/appium/droiddriver/util/InstrumentationUtils.java')
-rw-r--r-- | src/io/appium/droiddriver/util/InstrumentationUtils.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/io/appium/droiddriver/util/InstrumentationUtils.java b/src/io/appium/droiddriver/util/InstrumentationUtils.java index 95eb48c..c4f280d 100644 --- a/src/io/appium/droiddriver/util/InstrumentationUtils.java +++ b/src/io/appium/droiddriver/util/InstrumentationUtils.java @@ -17,6 +17,7 @@ package io.appium.droiddriver.util; import android.app.Instrumentation; +import android.content.Context; import android.os.Bundle; import android.os.Looper; import android.util.Log; @@ -73,6 +74,10 @@ public class InstrumentationUtils { return instrumentation; } + public static Context getTargetContext() { + return getInstrumentation().getTargetContext(); + } + /** * Gets the <a href= "http://developer.android.com/tools/testing/testing_otheride.html#AMOptionsSyntax" * >am instrument options</a>. |