AudioService: use FEATURE_LEANBACK instead of FEATURE_TELEVSION.
Bug: 18271714. Change-Id: I2fa6f44ef991aec5a980d70f698813468e7540c6
This commit is contained in:
@ -549,7 +549,7 @@ public class AudioService extends IAudioService.Stub {
|
||||
com.android.internal.R.bool.config_voice_capable)) {
|
||||
mPlatformType = PLATFORM_VOICE;
|
||||
} else if (context.getPackageManager().hasSystemFeature(
|
||||
PackageManager.FEATURE_TELEVISION)) {
|
||||
PackageManager.FEATURE_LEANBACK)) {
|
||||
mPlatformType = PLATFORM_TELEVISION;
|
||||
} else {
|
||||
mPlatformType = PLATFORM_DEFAULT;
|
||||
@ -5318,7 +5318,7 @@ public class AudioService extends IAudioService.Stub {
|
||||
private boolean mHdmiSystemAudioSupported = false;
|
||||
// Set only when device is tv.
|
||||
private HdmiTvClient mHdmiTvClient;
|
||||
// true if the device has system feature PackageManager.FEATURE_TELEVISION.
|
||||
// true if the device has system feature PackageManager.FEATURE_LEANBACK.
|
||||
// cached HdmiControlManager interface
|
||||
private HdmiControlManager mHdmiManager;
|
||||
// Set only when device is a set-top box.
|
||||
|
Reference in New Issue
Block a user