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: I711ca20c4c8ce389697e940696051a336f5fd808
This commit is contained in:
Dianne Hackborn
2019-10-28 16:36:15 -07:00
parent f529543d54
commit cdbc0dfa6a
7 changed files with 7 additions and 7 deletions

View File

@@ -70,7 +70,7 @@ public class FirmwareVersionDetailPreferenceController extends BasePreferenceCon
@Override
public CharSequence getSummary() {
return Build.VERSION.RELEASE;
return Build.VERSION.RELEASE_OR_CODENAME;
}
@Override