Add null check to avoid crash when incoming beam of contact

If "Contacts" has not activated for restricted user, when
receiving NFC beamed contact, VCardRecord will get null uri data,
which causes crash. Moreover, if VCardRecord return null, it will
also cause crash in TagViewer when calling content.addView(null).
Add null check and an empty view to avoid the crash happen.

Test: Receive contact by AndroidBeam on restricted user
Bug: 65187935
Change-Id: I70fa63a8d19bc763ac7a64c73405a4017afabc7c
2 files changed
tree: a78883ab7b78ce310decad640807752cd4d7449a
  1. canon/
  2. res/
  3. src/
  4. Android.mk
  5. AndroidManifest.xml