Skip to content

Commit 21a639b

Browse files
committed
address comment, switch order of operands
1 parent e88d704 commit 21a639b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mediacontroller/src/main/java/com/example/android/mediacontroller/MediaAppDetails.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public MediaAppDetails(PackageItemInfo info, PackageManager pm, Resources resour
104104
supportsAutomotive = false;
105105
if (features != null) {
106106
for (FeatureInfo f : features) {
107-
if ("android.hardware.type.automotive".equals(f.name)) {
107+
if (f.name != null && f.name.equals("android.hardware.type.automotive")) {
108108
supportsAutomotive = true;
109109
break;
110110
}

0 commit comments

Comments
 (0)