Fixed
Status Update
Comments
jb...@google.com <jb...@google.com>
ap...@google.com <ap...@google.com> #2
Actually, the second part of that (@font/some_other_font not being resolved) doesn't seem to be the case after re-opening the project. The main issue (@app_font not being resolved by the IDE in layout files despite working correctly at build/run time) is still there however
jb...@google.com <jb...@google.com> #3
Thank you for your feedback. Team may reach out for more feedback in reproducing or triaging this issue.
pr...@google.com <pr...@google.com> #4
(Adding to 3.5 hotlist in case this is a regression)
Description
Version used: 2.8.1
Devices/Android versions reproduced on: many
Your own code:
@Suppress("DEPRECATION")
private fun tryRelaunchUpToExplicitStack(): Boolean {
if (!deepLinkHandled) {
return false
}
val intent = activity!!.intent
val extras = intent.extras
val deepLinkIds = extras!!.getIntArray(KEY_DEEP_LINK_IDS)!!.toMutableList()
val deepLinkArgs = extras.getParcelableArrayList<Bundle>(KEY_DEEP_LINK_ARGS)
// Remove the leaf destination to pop up to one level above it
var leafDestinationId = deepLinkIds.removeLastKt()
deepLinkArgs?.removeLastKt()
// Probably deep linked to a single destination only.
if (deepLinkIds.isEmpty()) {
return false
}
@SinceKotlin("1.4")
public fun <T> MutableList<T>.removeLast(): T = if (isEmpty()) throw NoSuchElementException("List is empty.") else removeAt(lastIndex)
I'm seeing crashes on Crashlytics with that NoSuchElementException, but I'm not being able to reproduce it. Anyways if (deepLinkIds.isEmpty()) cannot be reached because the exception will throw first.