package com.mexico.inloancash.activity;

import android.content.Intent;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.view.KeyEvent;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import butterknife.ButterKnife;
import com.facebook.login.LoginStatusClient;
import com.indiaholacash.holacash.R;
import ඓ.K.K.K.C1293;

public class IndiaAuthActivity extends BaseActivity {
    public ImageView gonBack;
    public Button mIndiaBtnHome;
    public TextView mIndiaTvEndTime;
    public TextView title;

    /* renamed from: ඓ  reason: contains not printable characters */
    public CountDownTimer f2330;

    /* renamed from: com.mexico.inloancash.activity.IndiaAuthActivity$K  reason: contains not printable characters */
    public class CountDownTimerC0360 extends CountDownTimer {
        public CountDownTimerC0360(long j, long j2) {
            super(j, j2);
        }

        public void onFinish() {
            IndiaAuthActivity.this.startActivity(new Intent(IndiaAuthActivity.this, MainActivity.class));
        }

        public void onTick(long j) {
            TextView textView = IndiaAuthActivity.this.mIndiaTvEndTime;
            StringBuilder r1 = C1293.m3416("Return to the home page in ");
            r1.append(j / 1000);
            r1.append(" seconds ...");
            textView.setText(r1.toString());
        }
    }

    @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_auth_view_success_layout);
        ButterKnife.m1066(this);
        this.title.setText("Certification");
        this.f2330 = new CountDownTimerC0360(LoginStatusClient.DEFAULT_TOAST_DURATION_MS, 1000);
        this.f2330.start();
    }

    @Override // androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity
    public void onDestroy() {
        super.onDestroy();
        CountDownTimer countDownTimer = this.f2330;
        if (countDownTimer != null) {
            countDownTimer.cancel();
            this.f2330 = null;
        }
    }

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

    public void onViewClicked(View view) {
        int id = view.getId();
        if (id == R.id.logon_back || id == R.id.to_home) {
            finish();
        }
    }
}
