what-the-bank/sources/com/bumptech/glide/manager/RequestManagerFragment.java

127 lines
3.4 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.bumptech.glide.manager;
import android.app.Activity;
import android.app.Fragment;
import android.os.Bundle;
import com.airbnb.deeplinkdispatch.UrlTreeKt;
import com.bumptech.glide.Glide;
import java.util.HashSet;
import java.util.Set;
import o.InterfaceC17301vdx;
import o.YSJ;
import o.sXW;
@Deprecated
/* loaded from: classes.dex */
public class RequestManagerFragment extends Fragment {
public Fragment a;
private final Set<RequestManagerFragment> b;
public final InterfaceC17301vdx c;
public final sXW d;
public YSJ e;
private RequestManagerFragment g;
public RequestManagerFragment() {
this(new sXW());
}
private RequestManagerFragment(sXW sxw) {
this.c = new LWm(this);
this.b = new HashSet();
this.d = sxw;
}
public final void Fu_(Activity activity) {
RequestManagerFragment requestManagerFragment = this.g;
if (requestManagerFragment != null) {
requestManagerFragment.b.remove(this);
this.g = null;
}
RequestManagerFragment Fy_ = Glide.a(activity).i.Fy_(activity.getFragmentManager(), null);
this.g = Fy_;
if (equals(Fy_)) {
return;
}
this.g.b.add(this);
}
@Override // android.app.Fragment
public void onAttach(Activity activity) {
super.onAttach(activity);
try {
Fu_(activity);
} catch (IllegalStateException unused) {
}
}
@Override // android.app.Fragment
public void onDetach() {
super.onDetach();
RequestManagerFragment requestManagerFragment = this.g;
if (requestManagerFragment != null) {
requestManagerFragment.b.remove(this);
this.g = null;
}
}
@Override // android.app.Fragment
public void onStart() {
super.onStart();
this.d.e();
}
@Override // android.app.Fragment
public void onStop() {
super.onStop();
this.d.a();
}
@Override // android.app.Fragment
public void onDestroy() {
super.onDestroy();
this.d.d();
RequestManagerFragment requestManagerFragment = this.g;
if (requestManagerFragment != null) {
requestManagerFragment.b.remove(this);
this.g = null;
}
}
@Override // android.app.Fragment
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(super.toString());
sb.append("{parent=");
Fragment parentFragment = getParentFragment();
if (parentFragment == null) {
parentFragment = this.a;
}
sb.append(parentFragment);
sb.append(UrlTreeKt.componentParamSuffix);
return sb.toString();
}
/* loaded from: classes.dex */
class LWm implements InterfaceC17301vdx {
private RequestManagerFragment c;
LWm(RequestManagerFragment requestManagerFragment) {
this.c = requestManagerFragment;
}
public final String toString() {
StringBuilder sb = new StringBuilder();
sb.append(super.toString());
sb.append("{fragment=");
sb.append(this.c);
sb.append(UrlTreeKt.componentParamSuffix);
return sb.toString();
}
}
@Override // android.app.Fragment
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
}
}