diff options
| author | 2022-08-15 21:59:11 -0700 | |
|---|---|---|
| committer | 2022-08-15 21:59:11 -0700 | |
| commit | 2822186571d46c970f00f720fd08c28830e62c8d (patch) | |
| tree | bad6e905f39fdb8891dfcb6cbe0e5de0c74da301 /java/sdk_library.go | |
| parent | 90fbcf1c29d81486c4af5c6dd3da61d63c3d06ad (diff) | |
| parent | 6b56c375a13e5edf617a969654a65959a37edc2d (diff) | |
DO NOT MERGE - Merge Android 13
Bug: 242648940
Merged-In: I90e7df9875594a1257e582ef62bac5084f0f939d
Change-Id: I9655a6c1a7e7e5a2c29d9fcee7e1411dad45bd1c
Diffstat (limited to 'java/sdk_library.go')
| -rw-r--r-- | java/sdk_library.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/java/sdk_library.go b/java/sdk_library.go index f7e5d9d40..490c03132 100644 --- a/java/sdk_library.go +++ b/java/sdk_library.go @@ -2700,7 +2700,10 @@ func formattedOptionalSdkLevelAttribute(ctx android.ModuleContext, attrName stri `"current" is not an allowed value for this attribute`) return "" } - return formattedOptionalAttribute(attrName, value) + // "safeValue" is safe because it translates finalized codenames to a string + // with their SDK int. + safeValue := apiLevel.String() + return formattedOptionalAttribute(attrName, &safeValue) } // formats an attribute for the xml permissions file if the value is not null |