58 lines
1.7 KiB
Java
58 lines
1.7 KiB
Java
|
package com.scb.phone.view.fragment.transferandpay;
|
||
|
|
||
|
import androidx.fragment.app.Fragment;
|
||
|
import com.scb.phone.R;
|
||
|
import o.AbstractC13482fbE;
|
||
|
import o.yRS;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public abstract class BaseReplaceableFragment extends Hilt_BaseReplaceableFragment {
|
||
|
private Fragment c;
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: protected */
|
||
|
public final void b(Fragment fragment, int i, String str, boolean z) {
|
||
|
e(fragment, i, str, z, false);
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: protected */
|
||
|
public final void e(Fragment fragment, int i, String str, boolean z, boolean z2) {
|
||
|
yRS childFragmentManager = getChildFragmentManager();
|
||
|
AbstractC13482fbE a = childFragmentManager.a();
|
||
|
a.n = R.anim.2130772001;
|
||
|
a.f9128o = R.anim.2130772000;
|
||
|
a.l = R.anim.2130772001;
|
||
|
a.t = R.anim.2130772000;
|
||
|
Fragment findFragmentByTag = childFragmentManager.findFragmentByTag(str);
|
||
|
if (findFragmentByTag == null) {
|
||
|
a.b(i, fragment, str, 1);
|
||
|
findFragmentByTag = fragment;
|
||
|
} else if (z2) {
|
||
|
a.e(findFragmentByTag);
|
||
|
a.b(i, fragment, str, 1);
|
||
|
} else {
|
||
|
a.a(findFragmentByTag);
|
||
|
}
|
||
|
if (z) {
|
||
|
if (!z2) {
|
||
|
fragment = findFragmentByTag;
|
||
|
}
|
||
|
this.c = fragment;
|
||
|
}
|
||
|
a.b();
|
||
|
}
|
||
|
|
||
|
public void aO_() {
|
||
|
aN_();
|
||
|
if (this.c != null) {
|
||
|
AbstractC13482fbE a = getChildFragmentManager().a();
|
||
|
a.n = R.anim.2130772001;
|
||
|
a.f9128o = R.anim.2130772000;
|
||
|
a.l = R.anim.2130772001;
|
||
|
a.t = R.anim.2130772000;
|
||
|
a.c(this.c);
|
||
|
a.b();
|
||
|
}
|
||
|
this.c = null;
|
||
|
}
|
||
|
}
|