mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-19 09:25:34 +00:00
[fenix] For https://github.com/mozilla-mobile/fenix/issues/2144: Only opens to browser when necessary (https://github.com/mozilla-mobile/fenix/pull/2145)
This commit is contained in:
parent
afb0a7a644
commit
886a4fbeba
@ -135,10 +135,12 @@ open class HomeActivity : AppCompatActivity() {
|
||||
}
|
||||
|
||||
private fun handleOpenedFromExternalSourceIfNecessary(intent: Intent?) {
|
||||
if (intent?.extras?.getBoolean(OPEN_TO_BROWSER) != true) { return }
|
||||
|
||||
this.intent.putExtra(OPEN_TO_BROWSER, false)
|
||||
var customTabSessionId: String? = null
|
||||
|
||||
intent?.let {
|
||||
intent.let {
|
||||
if (isCustomTab) {
|
||||
customTabSessionId = SafeIntent(intent).getStringExtra(IntentProcessor.ACTIVE_SESSION_ID)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user