Cast to MmsMessageRecord in ConversationFragment#handleForwardMessage.

Was causing a crash for MMS messages.

Fixes #7951
This commit is contained in:
Greyson Parrelli 2018-07-02 08:56:11 -07:00
parent 69ea116b2b
commit c7066c0796

View File

@ -399,7 +399,7 @@ public class ConversationFragment extends Fragment
Intent composeIntent = new Intent(getActivity(), ShareActivity.class);
composeIntent.putExtra(Intent.EXTRA_TEXT, message.getDisplayBody().toString());
if (message.isMms()) {
MediaMmsMessageRecord mediaMessage = (MediaMmsMessageRecord) message;
MmsMessageRecord mediaMessage = (MmsMessageRecord) message;
if (mediaMessage.containsMediaSlide()) {
Slide slide = mediaMessage.getSlideDeck().getSlides().get(0);
composeIntent.putExtra(Intent.EXTRA_STREAM, slide.getUri());