Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vCard.toList() (VCardProperty) list in return empty on release version #151

Open
faiqfaheem opened this issue Aug 16, 2024 · 1 comment
Open

Comments

@faiqfaheem
Copy link

i didn`t want to get every property so i call vcard into list that return me the list of card properties but i working fine debug mode but on Release Version giving empty list :(
mycode

val list: List = vCard.toList()
Log.d("TAG", "onCreate42: "+list)
for (i in list.indices) {
val tagkey = list[i].toString().split("[")[0].replace("ezvcard.property.", "")
if (!stringlist.contains(tagkey)) {
stringlist.add(tagkey.trim())
val mvalue = getvalue(vCard, firstLetterSmall(tagkey))
// Log.d("TAG", "onCreate:$mvalue+")
if (mvalue.trim() == "" || mvalue.trim() == "null") {

            } else {
                keylist.add(VCFContactModel(tagkey, mvalue))
            }
        }
    }
@mangstadt
Copy link
Owner

If the vCard contains zero properties or contains invalid data, then this would cause your list to be empty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants