Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bece7901 authored by Hall Liu's avatar Hall Liu Committed by android-build-merger
Browse files

Merge changes from topics "dialer-account-suggestion-3",...

Merge changes from topics "dialer-account-suggestion-3", "dialer-account-suggestion-2" am: 9efa0d8b am: bc24158c
am: 637cb169

Change-Id: Ia29ed5874fba4d753c9206421594816b362ef061
parents 78df6600 637cb169
Loading
Loading
Loading
Loading
+3 −7
Original line number Diff line number Diff line
@@ -1336,15 +1336,8 @@ public class CallsManager extends Call.ListenerBase
                        return CompletableFuture.completedFuture(
                                Collections.singletonList(suggestion));
                    }
                    return CompletableFuture.completedFuture(
                            potentialPhoneAccounts.stream().map(phoneAccountHandle ->
                            new PhoneAccountSuggestion(phoneAccountHandle,
                                    PhoneAccountSuggestion.REASON_NONE, false)
                    ).collect(Collectors.toList()));
                    /* TODO -- turn this on after tests/debugging are done
                    return PhoneAccountSuggestionHelper.bindAndGetSuggestions(mContext,
                            finalCall.getHandle(), potentialPhoneAccounts);
                            */
                }, new LoggedHandlerExecutor(outgoingCallHandler, "CM.cOCSS"));


@@ -1430,6 +1423,9 @@ public class CallsManager extends Call.ListenerBase
                            newExtras.putParcelableList(
                                    android.telecom.Call.AVAILABLE_PHONE_ACCOUNTS,
                                    accountsFromSuggestions);
                            newExtras.putParcelableList(
                                    android.telecom.Call.EXTRA_SUGGESTED_PHONE_ACCOUNTS,
                                    accountSuggestions);
                            // Set a future in place so that we can proceed once the dialer replies.
                            mPendingAccountSelection = new CompletableFuture<>();
                            callToPlace.setIntentExtras(newExtras);