For #5696 - Adds basic share action to text selection context menu

fennec/beta
ekager 4 years ago committed by Emily Kager
parent 4cf74ed44e
commit f569f48b33

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

Loading…
Cancel
Save