Sergio C.
12/22/2020, 6:32 PMSinan Gunes
12/22/2020, 6:33 PMSergio C.
12/22/2020, 6:36 PMSergio C.
12/22/2020, 6:37 PMSergio C.
12/22/2020, 6:43 PMCasey Brooks
12/22/2020, 10:25 PMCasey Brooks
12/22/2020, 10:28 PM@JvmOverloads
to the constructor with default parameters to explicitly ask it to make multiple overloaded constructors https://kotlinlang.org/docs/reference/java-to-kotlin-interop.html#overloads-generationSergio C.
12/22/2020, 11:55 PMSergio C.
12/22/2020, 11:56 PMCasey Brooks
12/23/2020, 4:55 AM@JvmOverloads
on the primary constructor to make sure that the default one with no layoutId also gets generatedSergio C.
12/23/2020, 1:21 PMSergio C.
12/23/2020, 1:22 PM@JvmOverloads
is not workingā¦Sergio C.
12/23/2020, 1:23 PMSergio C.
12/23/2020, 1:28 PMclass TestJavaFragment2 @JvmOverloads constructor(private val i: Int = 0) : Fragment()
results in java code without the empty private constructor