Fix conditional in AccountTypeProvider
Extension accounts weren't being included in the account types which
would cause a crash when viewing or editing a G+ contact.
Test: manually verify that app doesn't crash when viewing contact with
G+ profile
Bug 33627801
Change-Id: Iaecfac466ffd1b3c5cd973b3b76d8c5bb14661d8
diff --git a/src/com/android/contacts/model/account/AccountTypeProvider.java b/src/com/android/contacts/model/account/AccountTypeProvider.java
index 5e64a7d..e5d0448 100644
--- a/src/com/android/contacts/model/account/AccountTypeProvider.java
+++ b/src/com/android/contacts/model/account/AccountTypeProvider.java
@@ -205,7 +205,7 @@
+ " attribute");
continue;
}
- if (Objects.equal(extensionType.accountType, type)) {
+ if (!Objects.equal(extensionType.accountType, type)) {
Log.w(TAG, "Skipping extension package " + extensionPackage + " because"
+ " the account type + " + extensionType.accountType +
" doesn't match expected type " + type);