2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-03 23:15:31 +00:00

For #3615: Long pressing the address bar should not copy link (#4083)

This commit is contained in:
Colin Lee 2019-07-16 13:42:05 -05:00 committed by GitHub
parent 6b4c160d18
commit 8855af2234
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 21 deletions

View File

@ -489,21 +489,6 @@ class BrowserFragment : Fragment(), BackHandler {
trackToolbarItemInteraction(it)
handleToolbarItemInteraction(it)
}
is SearchAction.ToolbarLongClicked -> {
getSessionById()?.let { session ->
session.copyUrl(requireContext())
view?.let {
val snackbar = FenixSnackbar.make(it, Snackbar.LENGTH_LONG)
.setText(resources.getString(R.string.url_copied))
if (!session.isCustomTabSession()) {
snackbar.anchorView = nestedScrollQuickAction
}
snackbar.show()
}
}
}
}
}

View File

@ -82,7 +82,6 @@ sealed class SearchAction : Action {
data class UrlCommitted(val url: String, val session: String?, val engine: SearchEngine? = null) : SearchAction()
data class TextChanged(val query: String) : SearchAction()
object ToolbarClicked : SearchAction()
object ToolbarLongClicked : SearchAction()
data class ToolbarMenuItemTapped(val item: ToolbarMenu.Item) : SearchAction()
object EditingCanceled : SearchAction()
}

View File

@ -86,11 +86,6 @@ class ToolbarUIView(
actionEmitter.onNext(SearchAction.TextChanged(text))
}
})
setOnUrlLongClickListener {
actionEmitter.onNext(SearchAction.ToolbarLongClicked)
true
}
}
with(view.context) {