summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShunkai Yao <yaoshunkai@google.com>2023-03-23 01:49:51 +0000
committerShunkai Yao <yaoshunkai@google.com>2023-03-23 02:05:26 +0000
commit15743ca8e0639390bf8e44ad8fbb156186d581fc (patch)
tree7a859673cf48e52e5be768c2fdf9f07511e11f3e
parentf17cdff20ca59a2b5cc10e5c30c91cbd8e977a22 (diff)
downloadMusicFX-15743ca8e0639390bf8e44ad8fbb156186d581fc.tar.gz
Minor update to use temp type instead of deviceInfo.getType
Bug: 266400026 Test: m MusicFX Change-Id: I2102151773063c54b244e8b1833a0c1abc07ea8e
-rw-r--r--src/com/android/musicfx/ActivityMusic.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/musicfx/ActivityMusic.java b/src/com/android/musicfx/ActivityMusic.java
index 1f46aed..8ec4b98 100644
--- a/src/com/android/musicfx/ActivityMusic.java
+++ b/src/com/android/musicfx/ActivityMusic.java
@@ -247,7 +247,7 @@ public class ActivityMusic extends Activity implements OnSeekBarChangeListener {
continue;
}
final int type = deviceInfo.getType();
- if (HEADSET_DEVICE_TYPES.contains(deviceInfo.getType())) {
+ if (HEADSET_DEVICE_TYPES.contains(type)) {
Log.v(TAG, " at least a HeadSet device type " + type + " connected");
return true;
}