Allan Wang
02/08/2020, 7:15 PMandroidExtensions {
experimental = true
features = ["parcelize"]
}
results in synthetic id suggestions in the IDE. Is there a way to address this and disable synthetics completely?Gabriel Feo
02/08/2020, 8:08 PMsuspend fun
from a nested Fragment to be called by the parent Fragment. What’d happen if the nested Fragment gets killed before the suspension point returns?kyleg
02/09/2020, 1:51 AMKevin Hester
02/09/2020, 2:30 PMdave08
02/09/2020, 3:04 PMbuild.gradle.kts
:
This project uses Gradle KTS build files which are not fully supported. Some functions may be affected.
?Michael Limb
02/11/2020, 6:13 PMoverride fun initializeViewModel(): OnboardingViewModel {
val model: OnboardingViewModel by viewModels { viewModelFactory }
return model
}
Nav Singh
02/11/2020, 10:10 PMTim Malseed
02/11/2020, 11:51 PM@AssistedInject
with Dagger 2, though I’ve used it with success in other projects..
It seems as though the `@AssistedInject.Factory Factory`is not being provided its non-assisted properties. I don’t quite have the terminology to describe this problem, so I’ll show rather than tell:pablisco
02/12/2020, 11:10 AM@get:RequiresApi(23)
however, I’m still getting a lint about the use of a new API level.
I’ll add more details as a thread…Joan Colmenero
02/12/2020, 12:42 PMLeeway
02/12/2020, 11:04 PMminifyEnabled
, I encountered some error as:
E/AndroidRuntime: FATAL EXCEPTION: DefaultDispatcher-worker-1
Process: <http://com.org|com.org>.appname, PID: 17870
java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter $this$collectionSizeOrDefault
at kotlin.collections.CollectionsKt__IterablesKt.collectionSizeOrDefault(Unknown Source:2)
at kotlin.collections.CollectionsKt.collectionSizeOrDefault(Unknown Source:0)
at <http://com.org|com.org>.appname.c.a.c.a(:93)
at <http://com.org|com.org>.appname.c.a.c$b.invokeSuspend(:41)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(:33)
at kotlinx.coroutines.p0.run(:241)
at kotlinx.coroutines.g2.a.a(:594)
at kotlinx.coroutines.g2.a.a(:60)
at kotlinx.coroutines.g2.a$b.run(:740)
Seems like something to do with proguard rules. I tried
-keep class kotlinx.** { *; }
-keep class kotlin.** { *; }
But it didn't work. Any ideas?Yugandhar
02/13/2020, 6:48 AMRemy Benza
02/13/2020, 7:21 AMKirill Prybylsky
02/13/2020, 9:17 AMM Sinan Sari
02/13/2020, 12:51 PM<nav-graph/>
in manifest and also set launcherMode="singleTask"
,
• I’ve set <deeplink/>
in navigation graph.
• I’ve handled intent extras in fragment.
My flow is;
• User clicks to forgot password, fills edit texts then requests deeplink mail. Works fine
• User clicks to deeplink in email and selects app then navigates to CreatePasswordFragment
automatically (deeplink destination fragment) & (I can handle args here, works fine also)
The problem is; Sometimes
if app is open on background, (for example I requested mail then pressed home button) and when I click deeplink, last fragment runs instead of destination fragment which is CreatePasswordFragment
Any ideas about what may cause the problem?
Thanks!
The problem is that, if app is open in background, sometimesdave08
02/13/2020, 1:41 PMrunBlocking { }
in a `SyncAdapter`'s onPerformSync
or in a Service
will crash the application with an InterruptedException
(as in https://github.com/Kotlin/kotlinx.coroutines/blob/9be85a44f157cea6bf14b685a87c6709ebd9664b/kotlinx-coroutines-core/jvm/src/Builders.kt#L27 )? What does everyone do about this? Surround it with a runCatching { runBlocking { } }
🙈?Tim
02/13/2020, 3:11 PMSteve
02/13/2020, 5:58 PMArslan Mushtaq
02/13/2020, 10:26 PMlawlorslaw
02/14/2020, 7:21 AMlawlorslaw
02/14/2020, 8:28 AMkarandeep singh
02/14/2020, 11:53 AMstantronic
02/14/2020, 12:17 PMAntoine Gagnon
02/14/2020, 5:27 PMSteve
02/14/2020, 5:51 PMOfir Bar
02/14/2020, 11:43 PMAccessibilityEvent
I wonder why the android team choose to represent ints in hexadecimal for static fields. Of course we can’t know why unless we ask the team directly i guess. So, in general, why the use of hexadecimal might be beneficial to represent ints in such case?Travis Griggs
02/15/2020, 1:47 AMthis.client = Mqtt3Client.builder()
.identifier(clientId)
.serverHost("<http://abc.xyz.com|abc.xyz.com>")
.sslWithDefaultConfig()
.buildAsync()
The builder()
message is being underlined in red and the popup error message says:
Calls to static methods in Java interfaces are prohibited in JVM target 1.6 Recompile with '-jvm-target 1.8'
Is there a way to fix this. Or rather, how do I do what it’s telling me to do? Somewhat of a neophyte with kotlin/Android here, be kind please.Freedom
02/15/2020, 11:19 PMlawlorslaw
02/16/2020, 1:53 AM@Parcelize
annotation on a class
https://android.jlelse.eu/yet-another-awesome-kotlin-feature-parcelize-5439718ba220
i tried this but it doesnt recognize the import .
import kotlinx.android.parcel.Parcelize
and i did a gradle sync after adding
android{
androidExtensions {
experimental = true
}
}
Joan Colmenero
02/16/2020, 8:06 PM