Modified to add only available known NON UI InCallServices
For now, it has been added & managed all of InCallService that is not NON UI type.
So I've modifed to add & manage only NON UI InCallServices by checking metadata in manifest.
Test: Receiving & sending calls
Bug: 291710836
Change-Id: I0e86eb6c982520ecb026960b6ffa42dfbcad020b
Signed-off-by: Junyeong Bak <junyeong.bak@samsung.com>
diff --git a/src/com/android/server/telecom/InCallController.java b/src/com/android/server/telecom/InCallController.java
index 9a53575..c469308 100644
--- a/src/com/android/server/telecom/InCallController.java
+++ b/src/com/android/server/telecom/InCallController.java
@@ -1732,7 +1732,7 @@
packageName);
ComponentName foundComponentName =
new ComponentName(serviceInfo.packageName, serviceInfo.name);
- if (requestedType == IN_CALL_SERVICE_TYPE_NON_UI) {
+ if (currentType == IN_CALL_SERVICE_TYPE_NON_UI) {
mKnownNonUiInCallServices.add(foundComponentName);
}