leandro
11/23/2020, 5:40 PMkotlin-parcelizer
plugin in 1.4.20 and ParcelCreator
lint rule?Slackbot
11/24/2020, 9:26 AMCorey Lanier
11/25/2020, 1:17 AMColton Idle
11/25/2020, 2:13 AMaipok
11/25/2020, 9:59 AMziv kesten
11/25/2020, 10:14 AMkobby
11/25/2020, 12:29 PMkobby
11/25/2020, 12:32 PMdiego-gomez-olvera
11/25/2020, 1:33 PMfun withMargins(
@Px horizontal: Int = 0,
@Px vertical: Int = 0,
@Px start: Int = horizontal,
@Px top: Int = vertical,
@Px end: Int = horizontal,
@Px bottom: Int = vertical
) {
// Operation
}
Mohamed Ibrahim
11/25/2020, 7:18 PMSlackbot
11/26/2020, 5:53 AMluke_c
11/26/2020, 11:00 AMMichal Havryluk
11/26/2020, 5:53 PMorg.gradle.parallel=true
kotlin.parallel.tasks.in.project=true
org.gradle.caching=true
kapt.incremental.apt=true
android.enableBuildCache=true
kapt.use.worker.api=true
android.injected.testOnly=false
org.gradle.vfs.watch=true
android.useAndroidX=true
android.enableJetifier=false
Ningappa Moodi
11/27/2020, 1:33 AMMark
11/27/2020, 7:01 AMRafs
11/27/2020, 5:43 PMloadFavoriteStations()
returns a Flow<List<T>>
The first map
gives me a List<T>
that I need to map hence the nested map
calls.Roshan P Varghese
11/29/2020, 3:50 PMval isLoggedIn: StateFlow<Boolean> = mainRepository.userPreferencesFlow.map { it.isLoggedIn }.stateIn(viewModelScope )
The above code gives me the error: "Suspend function 'stateIn' should be called only from a coroutine or another suspend function"
I could do it with LiveData like below.
#LiveData
val isLoggedInLiveData: LiveData<Boolean> =
mainRepository.userPreferencesFlow.map { userPreferences ->
userPreferences.isLoggedIn
}.asLiveData()
Can anyone suggest an equivalent code for StateFlow?
``````Iqbal Ahmed
11/30/2020, 7:50 AMTony Mykhaylovsky
11/30/2020, 5:24 PMCorey Lanier
12/01/2020, 2:18 AMPagerSnapHelper
to snap a CardView within my RecyclerView to the screen, and that works great. However, I’m trying to get the index of the current position on screen so that when I reach the end of the list of cards, i can run a pagination request to my API to receive the next set of data to attach to the recycler. Is there a good way to manage doing this?
EDIT: No, telling me to Slack Overflow/Google it doesn’t make you a better developer (I already tried them). It just makes you an asshole.jaran
12/01/2020, 1:32 PMSivan
12/01/2020, 2:24 PMAndy Gibel
12/01/2020, 9:48 PMtylerwilson
12/01/2020, 10:27 PMJoão Rodrigues
12/02/2020, 1:20 PMRicardo C.
12/02/2020, 5:04 PMResources.getSystem()
to obtain the density for dp to px conversions? Could density “config change”?
val Int.dp: Int
get() = (this / Resources.getSystem().displayMetrics.density).toInt()
val Int.px: Int
get() = (this * Resources.getSystem().displayMetrics.density).toInt()
João Gonçalves
12/02/2020, 5:49 PMA problem occurred configuring root project 'android'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not find org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50.
Searched in the following locations:
- <https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.3.50/kotlin-gradle-plugin-1.3.50.pom>
- <https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-gradle-plugin/1.3.50/kotlin-gradle-plugin-1.3.50.pom>
Anyone else experiencing this?san
12/03/2020, 3:59 AMSam
12/03/2020, 4:58 AMKlaas Kabini
12/03/2020, 10:47 AMKlaas Kabini
12/03/2020, 10:47 AMShalom Halbert
12/03/2020, 11:50 AMKlaas Kabini
12/03/2020, 11:54 AMShalom Halbert
12/03/2020, 11:57 AM