package com.mexico.inloancash.activity;

import android.annotation.SuppressLint;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Build;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.view.Window;
import android.widget.TextView;
import androidx.recyclerview.widget.RecyclerView;
import butterknife.ButterKnife;
import com.indiaholacash.holacash.R;
import com.mexico.inloancash.bean.India_User_Message_ListInfoBean;
import org.greenrobot.eventbus.ThreadMode;
import ඓ.ඓ.K.ῲ.RunnableC0638;
import ඓ.ඓ.K.ῲ.RunnableC0646;
import ῲ.ᨨ.㳳.C1841;
import 㳳.ῲ.K.AbstractC2413;
import 㳳.ῲ.K.C2399;

public class IndiaLaunchActivity extends BaseActivity {
    public TextView mUntil_Time;

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

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

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

        public void onFinish() {
            IndiaLaunchActivity indiaLaunchActivity = IndiaLaunchActivity.this;
            indiaLaunchActivity.f2460 = 0;
            IndiaLaunchActivity.this.startActivity(new Intent(indiaLaunchActivity, MainActivity.class));
            IndiaLaunchActivity.this.finish();
        }

        public void onTick(long j) {
            IndiaLaunchActivity.this.mUntil_Time.setClickable(false);
            TextView textView = IndiaLaunchActivity.this.mUntil_Time;
            StringBuilder sb = new StringBuilder();
            long j2 = j / 1000;
            sb.append(j2);
            sb.append("s");
            textView.setText(sb.toString());
            IndiaLaunchActivity.this.f2460 = (int) j2;
        }
    }

    @Override // androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, com.mexico.inloancash.activity.BaseActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity
    @SuppressLint({"CheckResult"})
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(R.layout.india_sp_view_layout);
        ButterKnife.m1066(this);
        m1434();
        new Thread(new RunnableC0638(this)).start();
        C2399.m6437().m6441(this);
        new Thread(new RunnableC0646(this)).start();
        this.f2459 = new CountDownTimerC0412(4000, 1000);
        this.f2459.start();
        long currentTimeMillis = System.currentTimeMillis();
        SharedPreferences.Editor edit = C1841.m4812().edit();
        edit.putLong("last_login_time", currentTimeMillis);
        edit.commit();
    }

    @Override // androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity
    public void onDestroy() {
        super.onDestroy();
        C2399.m6437().m6440(this);
    }

    @AbstractC2413(threadMode = ThreadMode.MAIN)
    @SuppressLint({"CheckResult"})
    public void onMessageEvent(India_User_Message_ListInfoBean india_User_Message_ListInfoBean) {
        india_User_Message_ListInfoBean.getCode();
    }

    public void onViewClicked() {
        startActivity(new Intent(this, MainActivity.class));
        finish();
    }

    /* renamed from: ؿ  reason: contains not printable characters */
    public void m1434() {
        int i = Build.VERSION.SDK_INT;
        Window window = getWindow();
        window.clearFlags(67108864);
        window.addFlags(Integer.MIN_VALUE);
        window.setStatusBarColor(0);
        window.getDecorView().setSystemUiVisibility(window.getDecorView().getSystemUiVisibility() | RecyclerView.AbstractC0269.FLAG_ADAPTER_FULLUPDATE | 256);
    }
}
