1
0
Fork 0

Suppress ComplexMethod error for openToBrowser

master
ekager 2019-05-14 21:45:58 -07:00 committed by Emily Kager
parent ecdbdda94e
commit 0143c54817
1 changed files with 1 additions and 0 deletions

View File

@ -163,6 +163,7 @@ open class HomeActivity : AppCompatActivity() {
load(searchTermOrURL, newTab, engine, forceSearch)
}
@Suppress("ComplexMethod")
fun openToBrowser(from: BrowserDirection, customTabSessionId: String? = null) {
val directions = when (from) {
BrowserDirection.FromGlobal -> NavGraphDirections.actionGlobalBrowser(customTabSessionId)