[6.2.6][crash] 修正nuc崩溃

This commit is contained in:
renwj
2023-12-28 12:12:55 +08:00
parent 963ba0cfab
commit d33c49f645

View File

@@ -328,18 +328,19 @@ public class ViewPressedStateLancet {
if (context != null) {
try {
ret = LayoutInflater.from(context).createView(name, null, attrs);
} catch (ClassNotFoundException ignore) {}
} catch (Throwable ignore) {}
if (ret == null) {
String[] prefixList = {
"android.widget.",
"android.webkit.",
"android.app."
"android.app.",
"android.view."
};
for (String prefix : prefixList) {
try {
ret = LayoutInflater.from(context).createView(name, prefix, attrs);
} catch (ClassNotFoundException ignore) { }
} catch (Throwable ignore) { }
}
}
}