[fenix] For https://github.com/mozilla-mobile/fenix/issues/5696 - Adds basic share action to text selection context menu

pull/600/head
ekager 5 years ago committed by Emily Kager
parent fc280b19b8
commit fae3dee41d

@ -32,6 +32,7 @@ import mozilla.components.concept.engine.EngineView
import mozilla.components.feature.contextmenu.ext.DefaultSelectionActionDelegate
import mozilla.components.service.fxa.sync.SyncReason
import mozilla.components.support.base.feature.UserInteractionHandler
import mozilla.components.support.ktx.android.content.share
import mozilla.components.support.ktx.kotlin.isUrl
import mozilla.components.support.ktx.kotlin.toNormalizedUrl
import mozilla.components.support.locale.LocaleAwareAppCompatActivity
@ -189,7 +190,9 @@ open class HomeActivity : LocaleAwareAppCompatActivity() {
store = components.core.store,
context = context,
appName = getString(R.string.app_name)
)
) {
share(it)
}
}.asView()
else -> super.onCreateView(parent, name, context, attrs)
}

Loading…
Cancel
Save