diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2017-09-19 00:58:57 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-09-19 00:58:57 +0000 |
commit | 10ea1bd17c116c47191e56ff67a1a6da32fcab4f (patch) | |
tree | 4e27e310bc3136c7a80a19ea489af0671164c088 /java/com/android | |
parent | bc5c09689b300a2f7871b939735dcf105e51292a (diff) | |
parent | 457b39781aa4ce65fc3846bd895c215fc60fc29d (diff) |
Merge "Log if a call is IMS reachable."
Diffstat (limited to 'java/com/android')
-rw-r--r-- | java/com/android/incallui/call/DialerCall.java | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/java/com/android/incallui/call/DialerCall.java b/java/com/android/incallui/call/DialerCall.java index 9f8992575..ee9a92609 100644 --- a/java/com/android/incallui/call/DialerCall.java +++ b/java/com/android/incallui/call/DialerCall.java @@ -153,6 +153,8 @@ public class DialerCall implements VideoTechListener, StateChangedListener, Capa private int secondCallWithoutAnswerAndReleasedButtonTimes = 0; private VideoTech videoTech; + private boolean isImsReachable; + public static String getNumberFromHandle(Uri handle) { return handle == null ? "" : handle.getSchemeSpecificPart(); } @@ -1297,6 +1299,14 @@ public class DialerCall implements VideoTechListener, StateChangedListener, Capa mVideoTechManager.dispatchRemovedFromCallList(); } + public boolean isImsReachable() { + return isImsReachable; + } + + private void setImsReachable(boolean imsReachable) { + isImsReachable = imsReachable; + } + /** * Specifies whether a number is in the call history or not. {@link #CALL_HISTORY_STATUS_UNKNOWN} * means there is no result. @@ -1502,7 +1512,11 @@ public class DialerCall implements VideoTechListener, StateChangedListener, Capa // Insert order here determines the priority of that video tech option videoTechs = new ArrayList<>(); - videoTechs.add(new ImsVideoTech(Logger.get(call.mContext), call, call.mTelecomCall)); + + ImsVideoTech imsVideoTech = + new ImsVideoTech(Logger.get(call.mContext), call, call.mTelecomCall); + call.setImsReachable(imsVideoTech.isAvailable(context)); + videoTechs.add(imsVideoTech); VideoTech rcsVideoTech = EnrichedCallComponent.get(call.mContext) |