-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stop returning the resources sdk level in RuntimeEnvironment.getQuali…
…fiers Previously, the Build.VERSION.RESOURCES_SDK_INT constant was returned as a suffix in the call to RuntimeEnvironment.getQualifiers. For example, it could contain the suffix 'v24'. There was not much value in returning the SDK level. It was unused, except for RuntimeEnvironment.setQualifiers checking that the sdk level matched RuntimeEnvironment.getApiLevel(). It is not possible to set the SDK level using RuntimeEnvironment.setQualifiers. RESOURCES_SDK_INT causes problems in the current Android V SDK, as it is higher than the SDK level. This causes RuntimeEnvironment.setQualifiers(RuntimeEnvironment.getQualifiers) to throw an Exception. Because this API level is unused, it can be removed from the result of RuntimeEnvironment.getQualifiers. PiperOrigin-RevId: 632580756
- Loading branch information
Showing
8 changed files
with
36 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters