From 765d8d5d33dcaf449b5387501ac88cd5e40af57e Mon Sep 17 00:00:00 2001 From: wangqi Date: Tue, 12 Jun 2018 12:46:35 -0700 Subject: 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 --- java/com/android/dialer/app/voicemail/VoicemailPlaybackPresenter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3