Commit 9272026b authored by person808's avatar person808 Committed by Kainalu Hagiwara
Browse files

For #10193 - Remove page title when sharing links

parent a7e74e30
......@@ -172,7 +172,7 @@ class DefaultShareController(
@VisibleForTesting
fun getShareText() = shareData.joinToString("\n\n") { data ->
listOfNotNull(data.title, data.url).joinToString("\n")
data.url.orEmpty()
}
// Navigation between app fragments uses ShareTab as arguments. SendTabUseCases uses TabData.
......
......@@ -39,8 +39,8 @@ import org.mozilla.fenix.components.metrics.Event
import org.mozilla.fenix.components.metrics.MetricController
import org.mozilla.fenix.ext.metrics
import org.mozilla.fenix.ext.nav
import org.mozilla.fenix.share.listadapters.AppShareOption
import org.mozilla.fenix.helpers.FenixRobolectricTestRunner
import org.mozilla.fenix.share.listadapters.AppShareOption
@RunWith(FenixRobolectricTestRunner::class)
@ExperimentalCoroutinesApi
......@@ -57,7 +57,7 @@ class ShareControllerTest {
TabData("title0", "url0"),
TabData("title1", "url1")
)
private val textToShare = "${shareData[0].title}\n${shareData[0].url}\n\n${shareData[1].title}\n${shareData[1].url}"
private val textToShare = "${shareData[0].url}\n\n${shareData[1].url}"
private val testCoroutineScope = TestCoroutineScope()
private val sendTabUseCases = mockk<SendTabUseCases>(relaxed = true)
private val snackbar = mockk<FenixSnackbar>(relaxed = true)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment