Expand the fix from commit 6c274cecff to cover AndroidX

Android Studio users who migrated to AndroidX are running into the
databinding deadlock again: https://issuetracker.google.com/111788726
This commit is contained in:
Raluca Sauciuc
2018-09-13 20:14:41 -07:00
committed by Mikhail Glukhikh
parent 0059fcceb9
commit de989c4050
@@ -148,7 +148,7 @@ public class SingleAbstractMethodUtils {
// Otherwise android data binding can cause resolve re-entrance
// For details see KT-18687, KT-16149
// TODO: prevent resolve re-entrance on architecture level, or (alternatively) ask data binding owners not to do it
if (DescriptorUtilsKt.getFqNameSafe(klass).asString().equals("android.databinding.DataBindingComponent")) {
if (DescriptorUtilsKt.getFqNameSafe(klass).asString().endsWith(".databinding.DataBindingComponent")) {
return null;
}