summaryrefslogtreecommitdiff
path: root/android/api_levels.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2019-06-10 16:38:11 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2019-06-10 16:38:11 +0000
commita6bf56d4bede80f1942d775a22f15bdc0d33e37a (patch)
tree0c61bc58e74650c98924ab38a1e52944f02d35a2 /android/api_levels.go
parent50e91c1a7a93077989cc590ea3878c46b3df4ba8 (diff)
parent7e0a2cb590f2f2d117571327f40fa8557363658c (diff)
Merge changes I9f8df94f,I2d7f5c56,I0ebb7381,Ieefcfc1a
* changes: Consolidate *MutatorContext and ModuleContext into BaseModuleContext Consolidate baseContext, BaseContext, and BaseModuleContext Rename ModuleBase receivers Remove repetition in android package names
Diffstat (limited to 'android/api_levels.go')
-rw-r--r--android/api_levels.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/android/api_levels.go b/android/api_levels.go
index 51d470381..961685aa8 100644
--- a/android/api_levels.go
+++ b/android/api_levels.go
@@ -85,7 +85,7 @@ func getApiLevelsMap(config Config) map[string]int {
// * Numeric API levels are simply converted.
// * "minimum" and "current" are not currently handled since the former is
// NDK specific and the latter has inconsistent meaning.
-func ApiStrToNum(ctx BaseContext, apiLevel string) (int, error) {
+func ApiStrToNum(ctx BaseModuleContext, apiLevel string) (int, error) {
num, ok := getApiLevelsMap(ctx.Config())[apiLevel]
if ok {
return num, nil