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

Commit 637cb169 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

Change-Id: I789b7de5fb4670b5ecb9ca03766af072aa5b1d65
parents 6941090d bc24158c
Loading
Loading
Loading
Loading
+3 −7
Original line number Diff line number Diff line
@@ -1337,15 +1337,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"));


@@ -1431,6 +1424,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);