[6.2.6][crash] 修正nuc崩溃
This commit is contained in:
@@ -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) { }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user