1
0
Fork 0

For #4198 - Include Intent.ACTION_SEND to open to browser

master
Emily Kager 2019-07-30 14:50:54 -07:00 committed by Emily Kager
parent 026dcb01f5
commit ec0bd85f6d
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ class IntentReceiverActivity : Activity() {
intent.setClassName(applicationContext, activityClass.java.name)
true
}
intent.action == Intent.ACTION_VIEW -> {
intent.action == Intent.ACTION_VIEW || intent.action == Intent.ACTION_SEND -> {
intent.setClassName(applicationContext, HomeActivity::class.java.name)
if (!intent.getBooleanExtra(NotificationManager.RECEIVE_TABS_TAG, false)) {
intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK