125 lines
4.0 KiB
Java
125 lines
4.0 KiB
Java
|
package com.scb.phone.view.fragment.investment.schedule;
|
||
|
|
||
|
import android.os.Bundle;
|
||
|
import android.view.LayoutInflater;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewGroup;
|
||
|
import androidx.gridlayout.widget.GridLayout;
|
||
|
import butterknife.BindView;
|
||
|
import butterknife.ButterKnife;
|
||
|
import com.scb.phone.R;
|
||
|
import com.scb.phone.view.custom.common.BubbleSelector;
|
||
|
import com.scb.phone.view.fragment.investment.schedule.SetupScheduleWeeklyFragment;
|
||
|
import o.InterfaceC13391fZD;
|
||
|
import o.InterfaceC8942daP;
|
||
|
import o.OU;
|
||
|
import o.ZI;
|
||
|
import o.bKK;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public class SetupScheduleWeeklyFragment extends Hilt_SetupScheduleWeeklyFragment implements InterfaceC8942daP.LWm.Sts {
|
||
|
|
||
|
@BindView
|
||
|
GridLayout grid;
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
public bKK presenter;
|
||
|
|
||
|
@Override // androidx.fragment.app.Fragment
|
||
|
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
|
||
|
View inflate = layoutInflater.inflate(R.layout.2131559918, viewGroup, false);
|
||
|
ButterKnife.c(this, inflate);
|
||
|
this.presenter.e((bKK) this);
|
||
|
bKK bkk = this.presenter;
|
||
|
OU e = ((BaseSetupScheduleFragment) this).c.e();
|
||
|
ZI.IeS ieS = new ZI.IeS() { // from class: o.bKJ
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
bKK.d((InterfaceC8942daP.LWm.Sts) obj);
|
||
|
}
|
||
|
};
|
||
|
if (bkk.f != 0) {
|
||
|
ieS.e(bkk.f);
|
||
|
}
|
||
|
bkk.e(e.a.d);
|
||
|
bkk.d();
|
||
|
return inflate;
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC8942daP.LWm
|
||
|
public final void b() {
|
||
|
for (int i = 0; i < this.grid.getChildCount(); i++) {
|
||
|
if (this.grid.getChildAt(i) instanceof BubbleSelector) {
|
||
|
((BubbleSelector) this.grid.getChildAt(i)).d = new BubbleSelector.RVV(this) { // from class: o.fkI
|
||
|
private SetupScheduleWeeklyFragment e;
|
||
|
|
||
|
@Override // com.scb.phone.view.custom.common.BubbleSelector.RVV
|
||
|
public final void c(String str, boolean z) {
|
||
|
SetupScheduleWeeklyFragment.a(this.e, str, z);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.e = this;
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC8942daP.LWm.Sts
|
||
|
public final void b(String str) {
|
||
|
for (int i = 0; i < this.grid.getChildCount(); i++) {
|
||
|
if (this.grid.getChildAt(i) instanceof BubbleSelector) {
|
||
|
BubbleSelector bubbleSelector = (BubbleSelector) this.grid.getChildAt(i);
|
||
|
if (!bubbleSelector.a.equals(str)) {
|
||
|
bubbleSelector.setSelected(false);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
|
||
|
public void onDestroy() {
|
||
|
super.onDestroy();
|
||
|
this.presenter.w_();
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void a(SetupScheduleWeeklyFragment setupScheduleWeeklyFragment, final String str, boolean z) {
|
||
|
bKK bkk = setupScheduleWeeklyFragment.presenter;
|
||
|
if (z) {
|
||
|
ZI.IeS ieS = new ZI.IeS(str) { // from class: o.bKL
|
||
|
private String c;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
bKK.d(this.c, (InterfaceC8942daP.LWm.Sts) obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.c = str;
|
||
|
}
|
||
|
};
|
||
|
if (bkk.f != 0) {
|
||
|
ieS.e(bkk.f);
|
||
|
}
|
||
|
} else {
|
||
|
ZI.IeS ieS2 = new ZI.IeS() { // from class: o.bKM
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
bKK.e((InterfaceC8942daP.LWm.Sts) obj);
|
||
|
}
|
||
|
};
|
||
|
if (bkk.f != 0) {
|
||
|
ieS2.e(bkk.f);
|
||
|
}
|
||
|
}
|
||
|
bkk.b = z;
|
||
|
bkk.d();
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.view.fragment.investment.schedule.BaseSetupScheduleFragment
|
||
|
final String d() {
|
||
|
return "W";
|
||
|
}
|
||
|
}
|