Move "Open in browser" option to webview only
This commit is contained in:
@@ -123,6 +123,7 @@ class WebViewActivity : BaseActivity() {
|
||||
R.id.action_web_forward -> webview.goForward()
|
||||
R.id.action_web_refresh -> refreshPage()
|
||||
R.id.action_web_share -> shareWebpage()
|
||||
R.id.action_web_browser -> openInBrowser()
|
||||
}
|
||||
return super.onOptionsItemSelected(item)
|
||||
}
|
||||
@@ -144,6 +145,10 @@ class WebViewActivity : BaseActivity() {
|
||||
}
|
||||
}
|
||||
|
||||
private fun openInBrowser() {
|
||||
openInBrowser(webview.url)
|
||||
}
|
||||
|
||||
companion object {
|
||||
private const val SOURCE_KEY = "source_key"
|
||||
private const val URL_KEY = "url_key"
|
||||
|
||||
Reference in New Issue
Block a user