Don't reflect on androidX

This commit is contained in:
Benoit Quenaudon 2018-09-12 15:11:42 -04:00
parent 9050e42038
commit c606f43a3d
No known key found for this signature in database
GPG key ID: ED84A5E42E120A55

View file

@ -90,6 +90,7 @@ public final class Util {
public static boolean isPlatformType(Class<?> rawType) { public static boolean isPlatformType(Class<?> rawType) {
String name = rawType.getName(); String name = rawType.getName();
return name.startsWith("android.") return name.startsWith("android.")
|| name.startsWith("androidx.")
|| name.startsWith("java.") || name.startsWith("java.")
|| name.startsWith("javax.") || name.startsWith("javax.")
|| name.startsWith("kotlin.") || name.startsWith("kotlin.")