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

Commit f709a68d authored by Grant Menke's avatar Grant Menke
Browse files

Update reference to Bundle#putParcelableList in CallsManager.

As part of Telecom modulariztion cleanup, this CL updates the reference to Bundle#putParcelableList to use Bundle#putParcelableArrayList instead.

Fixes: 307786404
Test: build + atest CallsManagerTest
Flag: EXEMPT refactor
Change-Id: I7c9b9f803386bc0e51607634133c03e1c0618481
parent 1188d1d3
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -2429,16 +2429,19 @@ public class CallsManager extends Call.ListenerBase
                                    "needs account selection");
                            // Create our own instance to modify (since extras may be Bundle.EMPTY)
                            Bundle newExtras = new Bundle(extras);
                            List<PhoneAccountHandle> accountsFromSuggestions = accountSuggestions
                            ArrayList<PhoneAccountHandle> accountsFromSuggestions =
                                    accountSuggestions
                                    .stream()
                                    .map(PhoneAccountSuggestion::getPhoneAccountHandle)
                                    .collect(Collectors.toList());
                            newExtras.putParcelableList(
                                    .collect(Collectors.toCollection(ArrayList::new));
                            newExtras.putParcelableArrayList(
                                    android.telecom.Call.AVAILABLE_PHONE_ACCOUNTS,
                                    accountsFromSuggestions);
                            newExtras.putParcelableList(
                            ArrayList<PhoneAccountSuggestion> accountSuggestionArrayList =
                                    new ArrayList<>(accountSuggestions);
                            newExtras.putParcelableArrayList(
                                    android.telecom.Call.EXTRA_SUGGESTED_PHONE_ACCOUNTS,
                                    accountSuggestions);
                                    accountSuggestionArrayList);
                            // Set a future in place so that we can proceed once the dialer replies.
                            mPendingAccountSelection.put(callToPlace.getId(),
                                    new CompletableFuture<>());