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

Skip to content
Commit 7fdd913c authored by Andrew Cheng's avatar Andrew Cheng
Browse files

Switch VCardParser version if it doesn't match vCard version

If we get a VCardVersionException (i.e., our VCardParser's version
doesn't match the vCard's version), try changing our VCardParser to the
other version (either v2.1 or v3.0), and try parsing again.

Currently, parsing simply fails upon VCardVersionException, so none of
the contacts and call history are downloaded.

Bug: 311404211
Test: atest BluetoothPbapVcardListTest
Test: atest BluetoothPbapRequestPullPhoneBookTest
Test: atest PbapClientConnectionHandlerTest
Flag: EXEMPT, code path is not executed on phones, ramping may be close
to non-existent and possibly not enough users to pass the gantry gate,
unit tests were added.

Change-Id: I005060a57b6d5c12049a717ea9c6c6041192e694
parent c5aa82b5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment