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

Unverified Commit e2bf16f2 authored by Vitalii Kulikov's avatar Vitalii Kulikov Committed by Adrian DC
Browse files

Contacts: Fix infinite loop in queryContactProviderByRawContactIds

RM-290

Change-Id: I890ce7ac2790efd7d20efeb9df144480dfe41b55
parent 1aff6ff8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -571,7 +571,7 @@ public class InCallMetricsHelper {
                        RawContacts._ID + "=?",
                        new String[]{rawId}, null)) {
                if (cursor != null) {
                    while (cursor.moveToFirst()) {
                    while (cursor.moveToNext()) {
                        String accountType = cursor.getString(0); // RawContacts.ACCOUNT_TYPE
                        if (pluginMap.containsKey(accountType)) {
                            providerSet.add(pluginMap.get(accountType));