kingsley.gomes
12/14/2018, 1:35 PMverify {fixedRateTimer(0, 1000) {function}}
I am using mockk
Any help/pointers would be much appreciatedmatt tighe
12/14/2018, 9:19 PMfun doLongProcess() = runBlocking {
async {
state.postValue("starting process")
startLongProcess()
}
}
liminal
12/16/2018, 5:51 AMsetValue(T)
and postValue(T)
to log the new value, for example? Do I need to implement a Delegate? I have a standard ViewModel
setup with MutableLiveData
and LiveData
and would like to log (within the ViewModel
itself) every time the value changes.Paul Woitaschek
12/17/2018, 8:54 AMclass IcebergViewHolder(override val containerView: View) : RecyclerView.ViewHolder(containerView), LayoutContainer
@Jorge RAleksey Kornienko
12/17/2018, 12:33 PMnwh
12/17/2018, 8:51 PMlawlorslaw
12/19/2018, 4:43 AMnickk
12/19/2018, 6:11 PMJorge R
12/19/2018, 10:31 PMlawlorslaw
12/20/2018, 9:13 AMjaran
12/20/2018, 10:21 AMlawlorslaw
12/20/2018, 10:33 AMlawlorslaw
12/20/2018, 10:37 AMlawlorslaw
12/20/2018, 10:40 AMtevjef
12/20/2018, 6:09 PMnwh
12/20/2018, 10:06 PMonViewCreated
Kevin Janvier Chinabalire
12/21/2018, 8:43 AMdisposable!!.add(service.login(user)
.subscribeOn(<http://Schedulers.io|Schedulers.io>())
.observeOn(AndroidSchedulers.mainThread())
.subscribe({ response ->
handleResponse(response)
}, { error ->
Tools.log("Error ${error.message}")
handlerError(error)
register_progress!!.dismiss()
})
)
My problem i keep gettting on error … even if the call is successful ….i get nulligorvd
12/21/2018, 2:30 PMinline
function from my base module on other modules:
Unable to instrument file with Jacoco... $inlined$extra$1.class
I've found this: https://github.com/jacoco/jacoco/issues/688 and this: https://issuetracker.google.com/issues/109771903.
Apparently, there is no fix for this problem at the moment. Someone knows a workaround?louiscad
12/22/2018, 5:58 PMkenkyee
12/22/2018, 10:49 PMghedeon
12/23/2018, 11:57 AMcore-ktx
spannable extension supports UrlSpan
? I see bold
, italic
, etc.. How would you add a clickable url to that?
(On a side note, if you want your custom view to accept styled text, what type would you choose? CharSequence
, Spanned
?)dave08
12/23/2018, 5:09 PMDispatchers.Main
being run in an Android Service gives me the app's main ui thread, how do I run on the Service's thread? Passing the runBlocking's scope down? I really need it's handler...Slackbot
12/24/2018, 1:29 AMcadi
12/24/2018, 2:14 PMadams2
12/26/2018, 4:17 PMHexa
12/27/2018, 10:15 AMfanie
12/27/2018, 12:49 PMrakeeb
12/28/2018, 7:10 PMIntRange
annotation with Kotlin’s construction params? I can’t get the lint check to work.
Is there an idiomatic way to this in Kotlin?
Use-case:
class Example(
@param:IntRange(from = 1)
val limit: Int = 1
)
Slackbot
12/30/2018, 8:46 AMam414
12/31/2018, 3:43 PMBottomNavigationViewEx (latest version) + SdkVersion 28
and I can't even declare the view to use it, I tried a few ways but always compiler error + runtime error
so my question is that how I can declare this BottomNavigationViewEx View in my kotlin project
val bottomNavigationViewEx = findViewById<BottomNavigationViewEx>(R.id.main_bottom_navigation)
java.lang.RuntimeException: Unable to start activity ComponentInfo: java.lang.ClassCastException: com.google.android.material.bottomnavigation.BottomNavigationView cannot be cast to com.ittianyu.bottomnavigationviewex.BottomNavigationViewEx
am414
12/31/2018, 3:43 PMBottomNavigationViewEx (latest version) + SdkVersion 28
and I can't even declare the view to use it, I tried a few ways but always compiler error + runtime error
so my question is that how I can declare this BottomNavigationViewEx View in my kotlin project
val bottomNavigationViewEx = findViewById<BottomNavigationViewEx>(R.id.main_bottom_navigation)
java.lang.RuntimeException: Unable to start activity ComponentInfo: java.lang.ClassCastException: com.google.android.material.bottomnavigation.BottomNavigationView cannot be cast to com.ittianyu.bottomnavigationviewex.BottomNavigationViewEx
itnoles
12/31/2018, 4:07 PMam414
12/31/2018, 4:15 PMitnoles
12/31/2018, 4:17 PMam414
12/31/2018, 4:19 PMrnpy
01/02/2019, 8:58 PM