Commit d1fc18d3 authored by Grisha Kruglov's avatar Grisha Kruglov Committed by Grisha Kruglov
Browse files

Pre: Avoid implicit translations between String? and String

parent 16c2744f
......@@ -27,8 +27,8 @@ class LoginFragment : Fragment() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
arguments?.let {
authUrl = it.getString(AUTH_URL)
redirectUrl = it.getString(REDIRECT_URL)
authUrl = it.getString(AUTH_URL)!!
redirectUrl = it.getString(REDIRECT_URL)!!
}
}
......
......@@ -117,8 +117,8 @@ open class MainActivity : AppCompatActivity(), LoginFragment.OnLoginCompleteList
if (Intent.ACTION_VIEW == action && data != null) {
val url = Uri.parse(data)
val code = url.getQueryParameter("code")
val state = url.getQueryParameter("state")
val code = url.getQueryParameter("code")!!
val state = url.getQueryParameter("state")!!
displayAndPersistProfile(code, state)
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment