quocdev
01/02/2018, 6:05 AMsabag.ronen
01/02/2018, 8:11 AMmingkangpan
01/02/2018, 9:39 AMmap.getOrDefault()
which is only supported if JDK 8 is used? also here is an article about that: https://proandroiddev.com/kotlin-youve-broken-my-heart-ea0e8f991b70Ruthvik
01/02/2018, 11:28 AMdavid.bilik
01/02/2018, 11:34 AMmutableListOf
is a constructor of mutable lists, MutableList
is typekirillrakhman
01/02/2018, 3:15 PMWarning: stripped invalid locals information from 1 method.
Some warnings are typically a sign of using an outdated Java toolchain. To fix, recompile the source with an updated toolchain.when compiling with D8?
Daniel
01/02/2018, 9:09 PMlouiscad
01/03/2018, 9:03 AMsmartynk
01/03/2018, 6:14 PMgitanshu
01/03/2018, 6:32 PMThiago
01/03/2018, 7:20 PMJitendra
01/04/2018, 3:06 AMFré Dumazy
01/05/2018, 11:10 AMActivity.onCreate()
, then adding the Fragment
, which uses this property in its onCreate()
When the Activity is recreated after being killed, it first creates its fragments again, causing Fragment.onCreate()
to be called before the initialization in Activity.onCreate()
. Is there any way to fix this, or is my design wrong?
I've posted this on SO as well: https://stackoverflow.com/questions/48112311/lateinit-property-not-initialized-when-activity-is-re-createdraghuramjampala
01/05/2018, 11:29 AMnickk
01/05/2018, 12:19 PMWarning: Stripped invalid locals information from 1 method.
Methods with invalid locals information:
java.lang.Object kotlin.collections.SlidingWindowKt$windowedIterator$1.doResume(java.lang.Object, java.lang.Throwable)
Some warnings are typically a sign of using an outdated Java toolchain. To fix, recompile the source with an updated toolchain.
Cannot figure out what changed…yaakov
01/05/2018, 5:50 PMlouiscad
01/09/2018, 9:09 PMsnackForever(…)
, snackForLife(…)
, snackOfYourLife(…)
, or something else? (:thread-please: )louiscad
01/09/2018, 9:37 PMSudhir Singh Khanger
01/10/2018, 1:02 PMAlexander Khyzhun
01/10/2018, 1:05 PMtateisu
01/10/2018, 3:16 PMPaul Woitaschek
01/10/2018, 6:14 PM!!
because of that ^^radzio
01/10/2018, 8:35 PMif(Build.VERSION.SDK_INT)
from my code. I've created this:
inline fun <T> T.applyForOreoOrAbove(block: T.() -> Unit): T {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
block()
}
return this
}
Unfortunately, Android Lint still complains that call requires... Is it a bug in the Lint or am I doing something wrong?brokenpipe
01/11/2018, 1:01 PMjoshc
01/11/2018, 8:03 PMlouiscad
01/11/2018, 9:31 PMinline fun View.onClick(crossinline l: (v: View) -> Unit) = setOnClickListener { l(it) }
inline fun View.onClick(noinline l: (v: View) -> Unit) = setOnClickListener(l)
The first one is optimized but doesn't gives you a proper stacktrace for the l
lambda in case you want it, if you get an exception for example.
The second one generates 2 classes instead of one, and has 3 methods calls instead of one when a click strikes, but you see it all in the stacktrace, with the exception source.
Note that the second one still produces meaningful method and class names. Just the line number is plain wrong and misleading (not hard to figure out you can't trust it).
MainActivity$onCreate$$inlined$onClick$1.onClick
sodiqoladeni
01/12/2018, 2:50 AMkhoatd191
01/12/2018, 9:53 AMAyden
01/12/2018, 10:21 AMview as Button
means?Lukas Anda
01/12/2018, 7:52 PMLukas Anda
01/12/2018, 7:52 PMbachhuberdesign
01/12/2018, 8:36 PMLukas Anda
01/12/2018, 9:22 PMjw
01/12/2018, 9:23 PMLukas Anda
01/12/2018, 9:24 PMjw
01/12/2018, 9:24 PMfindViewById
solves the problemLukas Anda
01/12/2018, 9:25 PMboy
01/12/2018, 9:32 PMfindViewById
jw
01/12/2018, 9:35 PMboy
01/12/2018, 9:36 PMjw
01/12/2018, 9:42 PMval layout = LayoutName(context)
layout.name.text = "hey"
etc.boy
01/12/2018, 9:43 PM