Suppress some lint errors

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=150078703
This commit is contained in:
olly 2017-03-14 09:51:13 -07:00 committed by Oliver Woodman
parent a26cb9cc3c
commit 8a411c310d
3 changed files with 11 additions and 1 deletions

View file

@ -33,6 +33,11 @@ android {
} }
} }
lintOptions {
// The demo app does not have translations.
disable 'MissingTranslation'
}
productFlavors { productFlavors {
noExtensions noExtensions
withExtensions withExtensions

View file

@ -262,7 +262,7 @@ public class SampleChooserActivity extends Activity {
} }
private UUID getDrmUuid(String typeString) throws ParserException { private UUID getDrmUuid(String typeString) throws ParserException {
switch (typeString.toLowerCase()) { switch (Util.toLowerInvariant(typeString)) {
case "widevine": case "widevine":
return C.WIDEVINE_UUID; return C.WIDEVINE_UUID;
case "playready": case "playready":

View file

@ -22,6 +22,11 @@ android {
minSdkVersion project.ext.minSdkVersion minSdkVersion project.ext.minSdkVersion
targetSdkVersion project.ext.targetSdkVersion targetSdkVersion project.ext.targetSdkVersion
} }
lintOptions {
// See: https://github.com/square/okio/issues/58
warning 'InvalidPackage'
}
} }
dependencies { dependencies {