Skip to content

Commit

Permalink
#1422 - Handle sms_body extra for incoming intents
Browse files Browse the repository at this point in the history
  • Loading branch information
moezbhatti committed May 16, 2019
1 parent ebf6014 commit a86229d
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -66,7 +66,9 @@ class ComposeActivityModule {
@Provides
@Named("text")
fun provideSharedText(activity: ComposeActivity): String {
return activity.intent.extras?.getString(Intent.EXTRA_TEXT) ?: ""
return activity.intent.extras?.getString(Intent.EXTRA_TEXT)
?: activity.intent.extras?.getString("sms_body")
?: ""
}

@Provides
Expand Down

0 comments on commit a86229d

Please sign in to comment.