diff options
author | wangqi <wangqi@google.com> | 2018-06-12 12:46:35 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-06-12 14:38:58 -0700 |
commit | 765d8d5d33dcaf449b5387501ac88cd5e40af57e (patch) | |
tree | f890938e48da53fbdafb0247bb58362d167dd1c4 /java | |
parent | f928bd25f30495db468d8205aaa4c4a57b46d086 (diff) |
Fix bug that two messengers app showing on sharing voicemail screen.
This is due to wild card content type. It's fixed by setting audio type only.
Bug: 62050463
Test: manual
PiperOrigin-RevId: 200263392
Change-Id: Ie2ea17fc04bbf74d2ef795b71e2dfbfaea9d9cf3
Diffstat (limited to 'java')
-rw-r--r-- | java/com/android/dialer/app/voicemail/VoicemailPlaybackPresenter.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/com/android/dialer/app/voicemail/VoicemailPlaybackPresenter.java b/java/com/android/dialer/app/voicemail/VoicemailPlaybackPresenter.java index e4c075b7d..0c82a637e 100644 --- a/java/com/android/dialer/app/voicemail/VoicemailPlaybackPresenter.java +++ b/java/com/android/dialer/app/voicemail/VoicemailPlaybackPresenter.java @@ -962,7 +962,7 @@ public class VoicemailPlaybackPresenter shareIntent.putExtra(Intent.EXTRA_STREAM, voicemailFileUri); shareIntent.putExtra(Intent.EXTRA_TEXT, transcription); shareIntent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); - shareIntent.setType("*/*"); + shareIntent.setType(context.getContentResolver().getType(voicemailFileUri)); } return shareIntent; |