144 lines
5.2 KiB
Java
144 lines
5.2 KiB
Java
package o;
|
|
|
|
import java.util.ArrayDeque;
|
|
import java.util.Queue;
|
|
import java.util.concurrent.Executor;
|
|
import o.AGo;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* loaded from: classes.dex */
|
|
public final class AGo {
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* JADX WARN: Code restructure failed: missing block: B:14:0x003d, code lost:
|
|
|
|
if (r2 != null) goto L36;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:21:0x0049, code lost:
|
|
|
|
r2.close();
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:32:0x0036, code lost:
|
|
|
|
r1 = r3.getAttributeValue(null, "application_locales");
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:39:0x0047, code lost:
|
|
|
|
if (r2 != null) goto L36;
|
|
*/
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public static java.lang.String e(android.content.Context r8) {
|
|
/*
|
|
java.lang.String r0 = "androidx.appcompat.app.AppCompatDelegate.application_locales_record_file"
|
|
java.lang.String r1 = ""
|
|
java.io.FileInputStream r2 = r8.openFileInput(r0) // Catch: java.io.FileNotFoundException -> L55
|
|
org.xmlpull.v1.XmlPullParser r3 = android.util.Xml.newPullParser() // Catch: java.lang.Throwable -> L40 java.lang.Throwable -> L47
|
|
java.lang.String r4 = "UTF-8"
|
|
r3.setInput(r2, r4) // Catch: java.lang.Throwable -> L40 java.lang.Throwable -> L47
|
|
int r4 = r3.getDepth() // Catch: java.lang.Throwable -> L40 java.lang.Throwable -> L47
|
|
L15:
|
|
int r5 = r3.next() // Catch: java.lang.Throwable -> L40 java.lang.Throwable -> L47
|
|
r6 = 1
|
|
if (r5 == r6) goto L3d
|
|
r6 = 3
|
|
if (r5 != r6) goto L25
|
|
int r7 = r3.getDepth() // Catch: java.lang.Throwable -> L40 java.lang.Throwable -> L47
|
|
if (r7 <= r4) goto L3d
|
|
L25:
|
|
if (r5 == r6) goto L15
|
|
r6 = 4
|
|
if (r5 == r6) goto L15
|
|
java.lang.String r5 = r3.getName() // Catch: java.lang.Throwable -> L40 java.lang.Throwable -> L47
|
|
java.lang.String r6 = "locales"
|
|
boolean r5 = r5.equals(r6) // Catch: java.lang.Throwable -> L40 java.lang.Throwable -> L47
|
|
if (r5 == 0) goto L15
|
|
java.lang.String r4 = "application_locales"
|
|
r5 = 0
|
|
java.lang.String r1 = r3.getAttributeValue(r5, r4) // Catch: java.lang.Throwable -> L40 java.lang.Throwable -> L47
|
|
L3d:
|
|
if (r2 == 0) goto L4c
|
|
goto L49
|
|
L40:
|
|
r8 = move-exception
|
|
if (r2 == 0) goto L46
|
|
r2.close() // Catch: java.io.IOException -> L46
|
|
L46:
|
|
throw r8
|
|
L47:
|
|
if (r2 == 0) goto L4c
|
|
L49:
|
|
r2.close() // Catch: java.io.IOException -> L4c
|
|
L4c:
|
|
boolean r2 = r1.isEmpty()
|
|
if (r2 == 0) goto L55
|
|
r8.deleteFile(r0)
|
|
L55:
|
|
return r1
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: o.AGo.e(android.content.Context):java.lang.String");
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
static class Sts implements Executor {
|
|
@Override // java.util.concurrent.Executor
|
|
public final void execute(Runnable runnable) {
|
|
new Thread(runnable).start();
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* loaded from: classes.dex */
|
|
public static class LWm implements Executor {
|
|
private Runnable b;
|
|
final Executor c;
|
|
private final Object e = new Object();
|
|
final Queue<Runnable> d = new ArrayDeque();
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public LWm(Executor executor) {
|
|
this.c = executor;
|
|
}
|
|
|
|
@Override // java.util.concurrent.Executor
|
|
public final void execute(final Runnable runnable) {
|
|
synchronized (this.e) {
|
|
this.d.add(new Runnable(this, runnable) { // from class: o.SWS
|
|
public final Runnable b;
|
|
public final AGo.LWm c;
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
AGo.LWm lWm = this.c;
|
|
try {
|
|
this.b.run();
|
|
} finally {
|
|
lWm.b();
|
|
}
|
|
}
|
|
|
|
{
|
|
this.c = this;
|
|
this.b = runnable;
|
|
}
|
|
});
|
|
if (this.b == null) {
|
|
b();
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public final void b() {
|
|
synchronized (this.e) {
|
|
Runnable poll = this.d.poll();
|
|
this.b = poll;
|
|
if (poll != null) {
|
|
this.c.execute(poll);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|