diff options
author | Maurice Lam <yukl@google.com> | 2015-08-07 12:55:23 -0700 |
---|---|---|
committer | Maurice Lam <yukl@google.com> | 2015-08-18 10:11:28 -0700 |
commit | 3fa6e08ea0e8b2a9deff3096893cfa49761e2ac7 (patch) | |
tree | 40b4a202f3a8b4739d823e9055c36547112e31be /library/main/src/com/android | |
parent | c4ca2b141d5a26450a769edb108fb37cf43a0ce3 (diff) | |
download | setupwizard-3fa6e08ea0e8b2a9deff3096893cfa49761e2ac7.tar.gz |
[SuwLib] Enable lint for setup wizard library
Fix existing lint issues and enforce lint in all builds done in the
ub-setupwizard-* tree. Lint will not be run or enforced in included
builds (e.g. GMS core builds which builds setup wizard library from
source using build.gradle file)
Change-Id: I7c1f8e2dce38d455ff5b635f80255e09baea1263
Diffstat (limited to 'library/main/src/com/android')
-rw-r--r-- | library/main/src/com/android/setupwizardlib/view/Illustration.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/library/main/src/com/android/setupwizardlib/view/Illustration.java b/library/main/src/com/android/setupwizardlib/view/Illustration.java index 537ddc7..f3a9598 100644 --- a/library/main/src/com/android/setupwizardlib/view/Illustration.java +++ b/library/main/src/com/android/setupwizardlib/view/Illustration.java @@ -141,6 +141,7 @@ public class Illustration extends FrameLayout { setPadding(0, illustrationHeight, 0, 0); } if (VERSION.SDK_INT >= VERSION_CODES.LOLLIPOP) { + //noinspection AndroidLintInlinedApi setOutlineProvider(ViewOutlineProvider.BOUNDS); } super.onMeasure(widthMeasureSpec, heightMeasureSpec); @@ -211,6 +212,7 @@ public class Illustration extends FrameLayout { return drawable.isAutoMirrored(); } else if (VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN_MR1) { final int flags = getContext().getApplicationInfo().flags; + //noinspection AndroidLintInlinedApi return (flags & ApplicationInfo.FLAG_SUPPORTS_RTL) != 0; } } |