Niebin
05/30/2018, 10:09 AMtgmcians
05/30/2018, 3:55 PMmNavigator
to lateinit var that also didn't work for mepdegand
05/30/2018, 10:17 PMliveData.observe(this, Observer { })
when I can write mediatorLiveData.addSource(liveData) { }
?
In both case, the 2d param of the observe
or addSource
is a android.arch.lifecycle.Observer
and this interface has only 1 method ...
I'm confusededwardwongtl
05/31/2018, 8:59 AMretrofitService.login
return Observable<LoginSealed.Success>
instead of Observable<LoginSealed>
ashishkrishnan
05/31/2018, 10:38 AMroyal10march
05/31/2018, 10:59 AMlouiscad
05/31/2018, 1:42 PMinline
modifier of the await
functionlocke
05/31/2018, 2:30 PMNicolas Chaduc
05/31/2018, 3:32 PMdan.the.man
05/31/2018, 9:22 PMandre.artus
06/01/2018, 12:07 PMHadi Tok
06/01/2018, 9:12 PMMockito.any(Class<T> type)
I couldn’t figure out how should I provide OnSuccessListener<MetadataBuffer>
as a class type to Mockito.any(Class<T> type)
as a parameter when I try any(OnSuccessListener<MetadataBuffer>.javaClass)
I got this error Function invocation 'OnSuccessListener<MetadataBuffer>(...)' expected
any idea how I fix this?ursus
06/02/2018, 7:45 PMprivate val registerTextView: TextView by bindView(R.id.registerTextView)
Slackbot
06/03/2018, 5:30 PMSyniseth
06/04/2018, 1:38 AMPaul Woitaschek
06/04/2018, 5:09 AMlovis
06/05/2018, 8:03 AM@Retention(AnnotationRetention.SOURCE)
@Target(AnnotationTarget.TYPE)
annotation class StringRes {
}
typealias Foo = (@StringRes Int) -> Int
changhyun
06/05/2018, 10:09 AMHong
06/05/2018, 6:22 PMimport kotlinx.android.synthetic.main.my_view_1.view.*
import kotlinx.android.synthetic.main.my_view_2.view.*
import kotlinx.android.synthetic.main.card_view.view.*
changhyun
06/06/2018, 3:13 AMyanek_
06/06/2018, 11:44 AMghedeon
06/06/2018, 5:13 PM@Inject
lateinit var factory: ViewModelProvider.Factory
val viewModel by lazy { ViewModelProviders.of(this, factory).get(FooViewModel::class.java) }
Now, I'd like to make it shorter with something like:
val viewModel by bindViewModel<FooViewModel>(factory)
....
inline fun <reified VIEW_MODEL: ViewModel> Fragment.bindViewModel(factory: ViewModelProvider.Factory) = lazy {
ViewModelProviders.of(this, factory)[VIEW_MODEL::class.java]
}
Which doesn't work, I assume because factory is passed before being initialized.kartikpatodi
06/06/2018, 6:57 PMkartikpatodi
06/06/2018, 7:37 PMloginBtn
is from the xml via android extentions
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setOnClickListener(android.view.View$OnClickListener)' on a null object
Slackbot
06/07/2018, 12:18 AMAyden
06/07/2018, 8:34 AMfindViewById()
and findViewById<>()
?louiscad
06/07/2018, 10:33 AMKatie Levy
06/07/2018, 6:28 PMSlackbot
06/08/2018, 6:41 AMPaul Woitaschek
06/08/2018, 11:14 AMPaul Woitaschek
06/08/2018, 11:14 AMnatiginfo
06/08/2018, 11:18 AM