fix RecentlyNonNull/Nullable warnings
This commit is contained in:
parent
6fe43c842b
commit
a2eb41900f
3 changed files with 5 additions and 5 deletions
|
@ -78,7 +78,7 @@ class LoginActivity : AppCompatActivity(), Injectable {
|
||||||
setContentView(R.layout.activity_login)
|
setContentView(R.layout.activity_login)
|
||||||
|
|
||||||
if (savedInstanceState != null) {
|
if (savedInstanceState != null) {
|
||||||
domain = savedInstanceState.getString(DOMAIN)
|
domain = savedInstanceState.getString(DOMAIN)!!
|
||||||
clientId = savedInstanceState.getString(CLIENT_ID)
|
clientId = savedInstanceState.getString(CLIENT_ID)
|
||||||
clientSecret = savedInstanceState.getString(CLIENT_SECRET)
|
clientSecret = savedInstanceState.getString(CLIENT_SECRET)
|
||||||
}
|
}
|
||||||
|
@ -225,7 +225,7 @@ class LoginActivity : AppCompatActivity(), Injectable {
|
||||||
val code = uri.getQueryParameter("code")
|
val code = uri.getQueryParameter("code")
|
||||||
val error = uri.getQueryParameter("error")
|
val error = uri.getQueryParameter("error")
|
||||||
|
|
||||||
domain = preferences.getString(DOMAIN, "")
|
domain = preferences.getString(DOMAIN, "")!!
|
||||||
|
|
||||||
if (code != null && domain.isNotEmpty()) {
|
if (code != null && domain.isNotEmpty()) {
|
||||||
/* During the redirect roundtrip this Activity usually dies, which wipes out the
|
/* During the redirect roundtrip this Activity usually dies, which wipes out the
|
||||||
|
|
|
@ -139,7 +139,7 @@ class SendStatusBroadcastReceiver : BroadcastReceiver() {
|
||||||
private fun getReplyMessage(intent: Intent): CharSequence {
|
private fun getReplyMessage(intent: Intent): CharSequence {
|
||||||
val remoteInput = RemoteInput.getResultsFromIntent(intent)
|
val remoteInput = RemoteInput.getResultsFromIntent(intent)
|
||||||
|
|
||||||
return remoteInput.getCharSequence(NotificationHelper.KEY_REPLY)
|
return remoteInput.getCharSequence(NotificationHelper.KEY_REPLY, "")
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -4,8 +4,8 @@ import android.text.TextPaint
|
||||||
import android.text.style.ClickableSpan
|
import android.text.style.ClickableSpan
|
||||||
|
|
||||||
abstract class ClickableSpanNoUnderline : ClickableSpan() {
|
abstract class ClickableSpanNoUnderline : ClickableSpan() {
|
||||||
override fun updateDrawState(ds: TextPaint?) {
|
override fun updateDrawState(ds: TextPaint) {
|
||||||
super.updateDrawState(ds)
|
super.updateDrawState(ds)
|
||||||
ds?.isUnderlineText = false
|
ds.isUnderlineText = false
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue