1
0
Fork 0

No issue: passes intent to handleOpenedFromExternalSourceIfNecessary (#834)

master
Sawyer Blatz 2019-03-04 15:14:33 -08:00 committed by GitHub
parent e200807a7a
commit 6cef7803d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -53,12 +53,12 @@ open class HomeActivity : AppCompatActivity() {
setSupportActionBar(navigationToolbar) setSupportActionBar(navigationToolbar)
NavigationUI.setupWithNavController(navigationToolbar, hostNavController, appBarConfiguration) NavigationUI.setupWithNavController(navigationToolbar, hostNavController, appBarConfiguration)
handleOpenedFromExternalSourceIfNecessary() handleOpenedFromExternalSourceIfNecessary(intent)
} }
override fun onNewIntent(intent: Intent?) { override fun onNewIntent(intent: Intent?) {
super.onNewIntent(intent) super.onNewIntent(intent)
handleOpenedFromExternalSourceIfNecessary() handleOpenedFromExternalSourceIfNecessary(intent)
} }
override fun onCreateView( override fun onCreateView(
@ -95,7 +95,7 @@ open class HomeActivity : AppCompatActivity() {
} }
} }
private fun handleOpenedFromExternalSourceIfNecessary() { private fun handleOpenedFromExternalSourceIfNecessary(intent: Intent?) {
if (intent?.extras?.getBoolean(OPEN_TO_BROWSER) == true) { if (intent?.extras?.getBoolean(OPEN_TO_BROWSER) == true) {
handleOpenedFromExternalSource() handleOpenedFromExternalSource()
} }