Merge "AudioProductStrategy: fix attributesMatches()" into rvc-dev am: 09116b99c4 am: 539a59da7f am: 749d6513fc
Change-Id: If97c3b6be018e30918094f9d3fd8b09c2a1c319d
This commit is contained in:
@@ -374,8 +374,8 @@ public final class AudioProductStrategy implements Parcelable {
|
|||||||
if (refAttr.equals(sDefaultAttributes)) {
|
if (refAttr.equals(sDefaultAttributes)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return ((refAttr.getUsage() == AudioAttributes.USAGE_UNKNOWN)
|
return ((refAttr.getSystemUsage() == AudioAttributes.USAGE_UNKNOWN)
|
||||||
|| (attr.getUsage() == refAttr.getUsage()))
|
|| (attr.getSystemUsage() == refAttr.getSystemUsage()))
|
||||||
&& ((refAttr.getContentType() == AudioAttributes.CONTENT_TYPE_UNKNOWN)
|
&& ((refAttr.getContentType() == AudioAttributes.CONTENT_TYPE_UNKNOWN)
|
||||||
|| (attr.getContentType() == refAttr.getContentType()))
|
|| (attr.getContentType() == refAttr.getContentType()))
|
||||||
&& ((refAttr.getAllFlags() == 0)
|
&& ((refAttr.getAllFlags() == 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user