42 lines
1.2 KiB
Java
42 lines
1.2 KiB
Java
|
package o;
|
||
|
|
||
|
import java.lang.ref.WeakReference;
|
||
|
import java.util.ArrayDeque;
|
||
|
import java.util.Deque;
|
||
|
import org.xmlpull.v1.XmlPullParser;
|
||
|
import org.xmlpull.v1.XmlPullParserException;
|
||
|
|
||
|
/* renamed from: o.jzh, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class C15973jzh {
|
||
|
public final Deque<WeakReference<XmlPullParser>> a = new ArrayDeque();
|
||
|
|
||
|
public static boolean a(XmlPullParser xmlPullParser, XmlPullParser xmlPullParser2) {
|
||
|
if (xmlPullParser2 == null || xmlPullParser == xmlPullParser2) {
|
||
|
return false;
|
||
|
}
|
||
|
try {
|
||
|
if (xmlPullParser2.getEventType() == 2) {
|
||
|
return "include".equals(xmlPullParser2.getName());
|
||
|
}
|
||
|
return false;
|
||
|
} catch (XmlPullParserException unused) {
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static boolean c(XmlPullParser xmlPullParser) {
|
||
|
if (xmlPullParser == null) {
|
||
|
return true;
|
||
|
}
|
||
|
try {
|
||
|
if (xmlPullParser.getEventType() != 3) {
|
||
|
return xmlPullParser.getEventType() == 1;
|
||
|
}
|
||
|
return true;
|
||
|
} catch (XmlPullParserException unused) {
|
||
|
return true;
|
||
|
}
|
||
|
}
|
||
|
}
|