Suppress ComplexMethod error for openToBrowser
parent
ecdbdda94e
commit
0143c54817
|
@ -163,6 +163,7 @@ open class HomeActivity : AppCompatActivity() {
|
||||||
load(searchTermOrURL, newTab, engine, forceSearch)
|
load(searchTermOrURL, newTab, engine, forceSearch)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Suppress("ComplexMethod")
|
||||||
fun openToBrowser(from: BrowserDirection, customTabSessionId: String? = null) {
|
fun openToBrowser(from: BrowserDirection, customTabSessionId: String? = null) {
|
||||||
val directions = when (from) {
|
val directions = when (from) {
|
||||||
BrowserDirection.FromGlobal -> NavGraphDirections.actionGlobalBrowser(customTabSessionId)
|
BrowserDirection.FromGlobal -> NavGraphDirections.actionGlobalBrowser(customTabSessionId)
|
||||||
|
|
Loading…
Reference in New Issue