Skip to content

Commit

Permalink
Update ContactsHelper.kt
Browse files Browse the repository at this point in the history
Fix FossifyOrg/Phone#28 (Missing contacts)
    According to doc ContentResolver.getIsSyncable returns value >0 if it is syncable, 0 if not, and <0 if the state isn't known yet.
  • Loading branch information
czarnyckm authored Jun 28, 2024
1 parent 6ee9908 commit 7f98e71
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ class ContactsHelper(val context: Context) {

val accounts = AccountManager.get(context).accounts
accounts.forEach {
if (ContentResolver.getIsSyncable(it, AUTHORITY) == 1) {
if (ContentResolver.getIsSyncable(it, AUTHORITY) != 0) {
var publicName = it.name
if (it.type == TELEGRAM_PACKAGE) {
publicName = context.getString(R.string.telegram)
Expand Down

0 comments on commit 7f98e71

Please sign in to comment.