what-the-bank/sources/o/Qps.java

132 lines
3.8 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import androidx.fragment.app.Fragment;
import java.util.HashMap;
import java.util.Iterator;
import o.VLM;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes.dex */
public final class Qps extends VKL {
private static final VLM.LWm f = new VLM.LWm() { // from class: o.Qps.3
@Override // o.VLM.LWm
public final <T extends VKL> T create(Class<T> cls) {
return new Qps(true);
}
};
final boolean c;
final HashMap<String, Fragment> d = new HashMap<>();
final HashMap<String, Qps> e = new HashMap<>();
final HashMap<String, sUv> g = new HashMap<>();
boolean b = false;
private boolean h = false;
boolean a = false;
/* JADX INFO: Access modifiers changed from: package-private */
public static Qps b(sUv suv) {
return (Qps) new VLM(suv, f).b(Qps.class);
}
/* JADX INFO: Access modifiers changed from: package-private */
public Qps(boolean z) {
this.c = z;
}
@Override // o.VKL
public final void onCleared() {
yRS.b(3);
this.b = true;
}
/* JADX INFO: Access modifiers changed from: package-private */
public final void b(Fragment fragment) {
if (this.a) {
yRS.b(2);
} else {
if (this.d.containsKey(fragment.mWho)) {
return;
}
this.d.put(fragment.mWho, fragment);
yRS.b(2);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public final boolean c(Fragment fragment) {
if (this.d.containsKey(fragment.mWho) && this.c) {
return this.b;
}
return true;
}
/* JADX INFO: Access modifiers changed from: package-private */
public final void a(Fragment fragment) {
if (this.a) {
yRS.b(2);
} else if (this.d.remove(fragment.mWho) != null) {
yRS.b(2);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public final void c(String str) {
Qps qps = this.e.get(str);
if (qps != null) {
qps.onCleared();
this.e.remove(str);
}
sUv suv = this.g.get(str);
if (suv != null) {
suv.d();
this.g.remove(str);
}
}
public final boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
Qps qps = (Qps) obj;
return this.d.equals(qps.d) && this.e.equals(qps.e) && this.g.equals(qps.g);
}
public final int hashCode() {
int hashCode = this.d.hashCode();
return (((hashCode * 31) + this.e.hashCode()) * 31) + this.g.hashCode();
}
public final String toString() {
StringBuilder sb = new StringBuilder("FragmentManagerViewModel{");
sb.append(Integer.toHexString(System.identityHashCode(this)));
sb.append("} Fragments (");
Iterator<Fragment> it = this.d.values().iterator();
while (it.hasNext()) {
sb.append(it.next());
if (it.hasNext()) {
sb.append(", ");
}
}
sb.append(") Child Non Config (");
Iterator<String> it2 = this.e.keySet().iterator();
while (it2.hasNext()) {
sb.append(it2.next());
if (it2.hasNext()) {
sb.append(", ");
}
}
sb.append(") ViewModelStores (");
Iterator<String> it3 = this.g.keySet().iterator();
while (it3.hasNext()) {
sb.append(it3.next());
if (it3.hasNext()) {
sb.append(", ");
}
}
sb.append(')');
return sb.toString();
}
}