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

Use right SMSManager object based on subscription id for downloading MMS #162

Merged
merged 1 commit into from
Sep 4, 2019
Merged

Use right SMSManager object based on subscription id for downloading MMS #162

merged 1 commit into from
Sep 4, 2019

Conversation

PradeepAmradi
Copy link
Contributor

@PradeepAmradi PradeepAmradi commented Sep 4, 2019

Downloading MMS in dual SIM cases may fail.
Example: User has two SIMs with subscription ids 1 & 2 say.
Current library always try to use default SMSManager for downloading MMS, which might fail if default subscription used is say 1 but actual MMS is received on 2.
I tested on Pulse SMS app, issue exist on Pulse SMS app as well.

Fix is to use SMS Manager based on subscription id of the received MMS, if id does not exist we fallback to using default.

Copy link
Collaborator

@klinker24 klinker24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just the one question. The rest of it looks fine and everything will fall back to the SmsManager.getDefault implementation if anything doesn't exist.

Thanks for the PR!

@klinker24 klinker24 merged commit dd86e4e into klinker41:master Sep 4, 2019
@PradeepAmradi PradeepAmradi deleted the download_mms_dual_sim_fix branch September 5, 2019 04:16
@PradeepAmradi
Copy link
Contributor Author

PradeepAmradi commented Sep 5, 2019

@klinker24 When is the new library version expected?

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.

2 participants