diff options
author | Kevin Jin <kjin@google.com> | 2015-02-19 16:27:53 -0800 |
---|---|---|
committer | Kevin Jin <kjin@google.com> | 2015-02-19 16:41:27 -0800 |
commit | 082c7925e5109092ff31d7021f1f9bb6daabee12 (patch) | |
tree | 113164ffd759f9e6a1f9edf6c533621a45494e4a /src/com/google/android/droiddriver/actions/TextAction.java | |
parent | 226cf886473a53b0f6b11cd97c083471cdbc5307 (diff) | |
download | droiddriver-082c7925e5109092ff31d7021f1f9bb6daabee12.tar.gz |
Change minSdkVersion to 8
Guard access to newer API.
Ideally we should have lint check the usage of our API in user code.
E.g. the users specify minSdkVersion of their app to a value lower
than 11, but use SingleKeyAction.CTRL_MOVE_HOME.
It should be a feature of the Android lint, as described in
http://stackoverflow.com/questions/14066857/sdk-version-required-annotation
We may write our own lint extension, but it's hard to get it into
users' workflow.
Change-Id: I8efe88475646530dd8c90ccf443fb3ee9b62c900
Diffstat (limited to 'src/com/google/android/droiddriver/actions/TextAction.java')
-rw-r--r-- | src/com/google/android/droiddriver/actions/TextAction.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/google/android/droiddriver/actions/TextAction.java b/src/com/google/android/droiddriver/actions/TextAction.java index 586ad4e..6c4fda3 100644 --- a/src/com/google/android/droiddriver/actions/TextAction.java +++ b/src/com/google/android/droiddriver/actions/TextAction.java @@ -16,6 +16,7 @@ package com.google.android.droiddriver.actions; +import android.annotation.SuppressLint; import android.os.Build; import android.os.SystemClock; import android.view.KeyCharacterMap; @@ -31,6 +32,7 @@ import com.google.android.droiddriver.util.Strings; */ public class TextAction extends KeyAction { + @SuppressLint("InlinedApi") @SuppressWarnings("deprecation") private static final KeyCharacterMap KEY_CHAR_MAP = Build.VERSION.SDK_INT < Build.VERSION_CODES.HONEYCOMB ? KeyCharacterMap |