commit | d9f01d0144a0dc62f0ba2dc35f56d2b02b7d0ddd | [log] [tgz] |
---|---|---|
author | Dianne Hackborn <[email protected]> | Mon Oct 28 16:32:32 2019 -0700 |
committer | Dianne Hackborn <[email protected]> | Mon Nov 11 15:06:18 2019 -0800 |
tree | 4c0cca7385d97e67066ef6b05492b0736e853016 | |
parent | 20bfb57a1f239101205d98e0063fb841a7f00036 [diff] |
Rework platform version to hide codenames. The public platform version no longer can be a codename, it is always the most recently released platform. A new build property and API provides either the offical version or the current codename as appropriate. This will avoid breaking apps that look at the platform version while development is under a codename. Bug: 143175463 Test: manual Change-Id: Ie69ffed9d6af6ba0ce8b7b5830634b9b1599292e
diff --git a/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/player/TvInputPlayer.java b/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/player/TvInputPlayer.java index 30ee412..f54b258 100644 --- a/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/player/TvInputPlayer.java +++ b/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/player/TvInputPlayer.java
@@ -452,7 +452,8 @@ } catch (PackageManager.NameNotFoundException e) { versionName = "?"; } - return "SampleTvInput/" + versionName + " (Linux;Android " + Build.VERSION.RELEASE + + return "SampleTvInput/" + versionName + " (Linux;Android " + + Build.VERSION.RELEASE_OR_CODENAME + ") " + "ExoPlayerLib/" + ExoPlayerLibraryInfo.VERSION; }