diff options
author | wangqi <wangqi@google.com> | 2017-08-31 15:30:58 -0700 |
---|---|---|
committer | Eric Erfanian <erfanian@google.com> | 2017-09-06 16:45:36 -0700 |
commit | fff6fcfc6887e113e25cfb7a8e07b8b73af0c62c (patch) | |
tree | f78e96458378763d9d38f158e5cc374a499d0494 /java/com/android/dialer/callcomposer/CallComposerActivity.java | |
parent | f370b7dc3b7218c20fc55d08902869be31d3cab6 (diff) |
Use TelecomManager#isInManagedCall starting from O.
The TelecomManager#isInCall method returns true anytime the user is in a call.
Starting in O, the APIs include support for self-managed ConnectionServices so that other apps like Duo can tell Telecom about its calls. So, if the user is in a Duo call, isInCall would return true.
Dialer uses this to determine whether to show the "return to call in progress" when Dialer is launched.
Instead, Dialer should use TelecomManager#isInManagedCall, which only returns true if the device is in a managed call which Dialer would know about.
Bug: 36991070
Test: none
PiperOrigin-RevId: 167200903
Change-Id: I12ac7b893dcbfa2fc842ca5ab356fbbc490a098b
Diffstat (limited to 'java/com/android/dialer/callcomposer/CallComposerActivity.java')
-rw-r--r-- | java/com/android/dialer/callcomposer/CallComposerActivity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/com/android/dialer/callcomposer/CallComposerActivity.java b/java/com/android/dialer/callcomposer/CallComposerActivity.java index fa380cc19..4a6cdbbd8 100644 --- a/java/com/android/dialer/callcomposer/CallComposerActivity.java +++ b/java/com/android/dialer/callcomposer/CallComposerActivity.java @@ -438,7 +438,7 @@ public class CallComposerActivity extends AppCompatActivity maybeShowPrivacyToast(data); if (data.hasImageData() && ConfigProviderBindings.get(this).getBoolean("enable_delayed_ec_images", true) - && !TelecomUtil.isInCall(this)) { + && !TelecomUtil.isInManagedCall(this)) { timeoutHandler.postDelayed(placeTelecomCallRunnable, getRCSTimeoutMillis()); startActivity( CallPendingActivity.getIntent( |