AVRCP: Clean up of redundant code
Removed unused "isSplitA2dpEnabled" flag
based conditions which do not have any
functionality impact.
CRs-Fixed: 2517608
Change-Id: I1299970ec76b911321c2de6162ec2185608942f5
diff --git a/packages_apps_bluetooth_ext/src/avrcp/Avrcp_ext.java b/packages_apps_bluetooth_ext/src/avrcp/Avrcp_ext.java
index e5150d2..e46e3fd 100644
--- a/packages_apps_bluetooth_ext/src/avrcp/Avrcp_ext.java
+++ b/packages_apps_bluetooth_ext/src/avrcp/Avrcp_ext.java
@@ -2560,31 +2560,7 @@
param = 1;
long update_interval = 0L;
- // Split A2dp will be enabled by default
- boolean isSplitA2dpEnabled = true;
- AdapterService adapterService = AdapterService.getAdapterService();
- if (adapterService != null) {
- //Todo, Once KS TAG is available, need to remove ReflectionUtils
- //isSplitA2dpEnabled= adapterService.isSplitA2dpEnabled();
- ReflectionUtils rUtils = new ReflectionUtils();
- if (rUtils.isMethodAvailable(adapterService,"isSplitA2dpEnabled", null)) {
- Object obj = rUtils.invokeMethod(adapterService,"isSplitA2dpEnabled", null);
- if (obj != null) {
- isSplitA2dpEnabled = (boolean)obj;
- } else {
- Log.v(TAG,"Obj is null");
- }
- } else {
- Log.v(TAG,"isSplitA2dpEnabled method is not available");
- }
- Log.v(TAG,"split enabled: " + isSplitA2dpEnabled);
- }
-
- if (isSplitA2dpEnabled) {
- update_interval = SystemProperties.getLong("persist.vendor.btstack.avrcp.pos_time", 3000L);
- } else {
- update_interval = SystemProperties.getLong("persist.vendor.btstack.avrcp.pos_time", 1000L);
- }
+ update_interval = SystemProperties.getLong("persist.vendor.btstack.avrcp.pos_time", 3000L);
deviceFeatures[deviceIndex].mPlayPosChangedNT =
AvrcpConstants_ext.NOTIFICATION_TYPE_INTERIM;
update_interval = Math.max((long)param * 1000L, update_interval);