1
0
mirror of https://github.com/tateisu/SubwayTooter synced 2024-12-25 00:21:26 +01:00

fix crash error in platform type

This commit is contained in:
tateisu 2019-02-24 18:33:19 +09:00
parent 018d714d01
commit 1396062674
2 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,7 @@ class ActKeywordFilter
startLoading()
} else {
etPhrase.setText(
intent.getStringExtra(EXTRA_INITIAL_PHRASE).notEmpty()
intent.getStringExtra(EXTRA_INITIAL_PHRASE)?.notEmpty()
?: getString(R.string.filter_expire_unlimited)
)
}

View File

@ -138,7 +138,7 @@ inline fun <S : CharSequence, Z : Any?> S?.letNotEmpty(block : (S) -> Z?) : Z? =
// usage: str.notEmpty() ?: fallback
// equivalent: if(this.isNotEmpty() ) this else null
fun <S : CharSequence> S.notEmpty() :S? = if( this.isNotEmpty() ) this else null
fun <S : CharSequence> S?.notEmpty() :S? = if( this?.isNotEmpty() ==true ) this else null
////////////////////////////////////////////////////////////////////
// string