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

Commit 87c8bd7a authored by Danny Baumann's avatar Danny Baumann
Browse files

Fix getAllPhoneAccounts() returning no accounts.

Change-Id: Id832372cba08d1493878499073a6f178c255a4dd
parent 15679e29
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -303,7 +303,7 @@ public class TelecomService extends Service {
            try {
                List<PhoneAccount> allPhoneAccounts = mPhoneAccountRegistrar.getAllPhoneAccounts();
                List<PhoneAccount> profilePhoneAccounts = new ArrayList<>(allPhoneAccounts.size());
                for (PhoneAccount phoneAccount : profilePhoneAccounts) {
                for (PhoneAccount phoneAccount : allPhoneAccounts) {
                    if (isVisibleToCaller(phoneAccount)) {
                        profilePhoneAccounts.add(phoneAccount);
                    }