Skip to content

feat: handle SEND intents for contact imports#384

Merged
naveensingh merged 4 commits intomainfrom
naveensingh/handle-send-intents
Oct 9, 2025
Merged

feat: handle SEND intents for contact imports#384
naveensingh merged 4 commits intomainfrom
naveensingh/handle-send-intents

Conversation

@naveensingh
Copy link
Member

@naveensingh naveensingh commented Oct 9, 2025

Type of change(s)

  • Bug fix
  • Feature / enhancement
  • Infrastructure / tooling (CI, build, deps, tests)
  • Documentation

What changed and why

Added handling for android.intent.action.SEND in MainActivity. It relies on the same import logic as when open VCF files from other apps. For simplicity, this only supports single VCF shares and doesn't handle android.intent.action.SEND_MULTIPLE (proposed in #383).

The importer could be a different/alias activity with the Import contacts label, but this is also nice, and I'm lazy.

Tests performed

  • Importing contacts by sharing and opening from other apps.

Closes the following issue(s)

Checklist

  • I read the contribution guidelines.
  • I manually tested my changes on device/emulator (if applicable).
  • I updated the "Unreleased" section in CHANGELOG.md (if applicable).
  • I have self-reviewed my pull request (no typos, formatting errors, etc.).
  • All checks are passing.

@naveensingh naveensingh force-pushed the naveensingh/handle-send-intents branch 2 times, most recently from 82f7334 to 0fb06ec Compare October 9, 2025 13:44
Previously, the same cache/contacts/contacts.vcf path was used for both exporting and importing.
@naveensingh naveensingh force-pushed the naveensingh/handle-send-intents branch from 0fb06ec to d52b9ec Compare October 9, 2025 13:53
@naveensingh naveensingh force-pushed the naveensingh/handle-send-intents branch from 5525d48 to 2f11db1 Compare October 9, 2025 13:57
@naveensingh naveensingh merged commit 30691dc into main Oct 9, 2025
6 checks passed
@naveensingh naveensingh deleted the naveensingh/handle-send-intents branch October 9, 2025 14:01
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

Successfully merging this pull request may close these issues.

sharing a Contact doesn't offer Fossify Contacts

1 participant