package com.mexico.inloancash.activity;

import android.app.Activity;
import android.os.Bundle;
import android.view.KeyEvent;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.fragment.app.Fragment;
import butterknife.ButterKnife;
import com.facebook.appevents.codeless.internal.PathComponent;
import com.indiaholacash.holacash.R;
import com.mexico.inloancash.fragment.IndiaFourthStepAuthFragment;
import com.mexico.inloancash.fragment.IndiaSecondStepAuthFragment;
import com.mexico.inloancash.fragment.IndiaStepOneAuthFragment;
import com.mexico.inloancash.fragment.IndiaThirdStepAuthFragment;
import java.util.ArrayList;
import java.util.List;
import ඓ.ඓ.K.㳳.AbstractC0671;
import ῲ.Ԕ.K.AbstractC1558;
import ῲ.ᨨ.㳳.C1841;

public class IndiaCerActivity extends BaseActivity implements AbstractC0671 {
    public FrameLayout mIndiaFrameLayout;
    public ImageView mIndiaLBack;
    public ImageView mIndiaThe_Fourth;
    public ImageView mIndiaThe_Third;
    public ImageView mIndiaThe_second;
    public TextView title;

    /* renamed from: ඓ  reason: contains not printable characters */
    public List<Fragment> f2367 = new ArrayList();

    /* renamed from: ⁱ  reason: contains not printable characters */
    public int f2368 = 0;

    /* renamed from: 㴹  reason: contains not printable characters */
    public int f2369;

    @Override // androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, com.mexico.inloancash.activity.BaseActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(R.layout.india_activity_view_step);
        ButterKnife.m1066(this);
        C1841.m4791((Activity) this, (int) R.color.theme);
        try {
            this.f2369 = getIntent().getIntExtra(PathComponent.PATH_INDEX_KEY, -1);
        } catch (Exception unused) {
        }
        IndiaStepOneAuthFragment indiaStepOneAuthFragment = new IndiaStepOneAuthFragment(this);
        indiaStepOneAuthFragment.setArguments(new Bundle());
        IndiaSecondStepAuthFragment indiaSecondStepAuthFragment = new IndiaSecondStepAuthFragment(this);
        indiaSecondStepAuthFragment.setArguments(new Bundle());
        IndiaThirdStepAuthFragment indiaThirdStepAuthFragment = new IndiaThirdStepAuthFragment(this);
        indiaThirdStepAuthFragment.setArguments(new Bundle());
        IndiaFourthStepAuthFragment indiaFourthStepAuthFragment = new IndiaFourthStepAuthFragment(this);
        indiaFourthStepAuthFragment.setArguments(new Bundle());
        this.f2367.add(indiaStepOneAuthFragment);
        this.f2367.add(indiaSecondStepAuthFragment);
        this.f2367.add(indiaThirdStepAuthFragment);
        this.f2367.add(indiaFourthStepAuthFragment);
        int i = this.f2369;
        if (i != -1) {
            m1390(i - 1);
        }
    }

    @Override // androidx.appcompat.app.AppCompatActivity
    public boolean onKeyDown(int i, KeyEvent keyEvent) {
        if (i != 4) {
            return true;
        }
        finish();
        return true;
    }

    public void onViewClicked() {
        finish();
    }

    @Override // ඓ.ඓ.K.㳳.AbstractC0671
    /* renamed from: ʬ  reason: contains not printable characters */
    public void m1388() {
        finish();
    }

    @Override // ඓ.ඓ.K.㳳.AbstractC0671
    /* renamed from: K  reason: contains not printable characters */
    public void m1389() {
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m1391(String str) {
        this.title.setText(str);
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m1390(int i) {
        if (i == 1) {
            this.mIndiaThe_second.setSelected(true);
        } else if (i == 2) {
            this.mIndiaThe_second.setSelected(true);
            this.mIndiaThe_Third.setSelected(true);
        } else if (i == 3) {
            this.mIndiaThe_second.setSelected(true);
            this.mIndiaThe_Third.setSelected(true);
            this.mIndiaThe_Fourth.setSelected(true);
        }
        AbstractC1558 r0 = getSupportFragmentManager().m3915();
        if (!this.f2367.get(i).isAdded()) {
            r0.m4096(R.id.auth_frame, this.f2367.get(i));
        }
        int i2 = this.f2368;
        if (i2 != i) {
            r0.m4087(this.f2367.get(i2));
            r0.m4090(this.f2367.get(i)).m4095();
        } else {
            r0.m4090(this.f2367.get(i)).m4095();
        }
        this.f2368 = i;
    }
}
