1
0
Fork 0

For #2144: Only opens to browser when necessary (#2145)

master
Sawyer Blatz 2019-04-29 13:49:01 -07:00 committed by GitHub
parent 7483a307ac
commit 3734d08f17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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)
}