package com.mexico.inloancash.activity;

import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.ImageView;
import android.widget.TextView;
import butterknife.ButterKnife;
import com.indiaholacash.holacash.R;

public class IndiaWeb_ViewActivity extends BaseActivity {
    public ImageView mIndiaLogonBack;
    public TextView title;
    public WebView webView;

    /* renamed from: ඓ  reason: contains not printable characters */
    public String f2518 = "";

    /* renamed from: com.mexico.inloancash.activity.IndiaWeb_ViewActivity$ῲ  reason: contains not printable characters */
    public class View$OnClickListenerC0432 implements View.OnClickListener {
        public View$OnClickListenerC0432() {
        }

        public void onClick(View view) {
            IndiaWeb_ViewActivity.this.finish();
        }
    }

    /* renamed from: com.mexico.inloancash.activity.IndiaWeb_ViewActivity$K  reason: contains not printable characters */
    public class C0433 extends WebViewClient {
        public C0433(IndiaWeb_ViewActivity indiaWeb_ViewActivity) {
        }

        @Override // android.webkit.WebViewClient
        public boolean shouldOverrideUrlLoading(WebView webView, String str) {
            webView.loadUrl(str);
            return true;
        }
    }

    @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_web_layout);
        ButterKnife.m1066(this);
        m1461();
        this.webView.setWebChromeClient(new WebChromeClient());
        this.f2518 = getIntent().getStringExtra("webUrl");
        this.title.setText("Privacy Policy");
        try {
            this.title.setText(getIntent().getStringExtra("titleName"));
        } catch (Exception e) {
            e.printStackTrace();
        }
        this.webView.loadUrl(this.f2518);
        this.webView.setWebViewClient(new C0433(this));
    }

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

    public void onViewClicked() {
        finish();
    }

    /* renamed from: ؿ  reason: contains not printable characters */
    public void m1461() {
        WebSettings settings = this.webView.getSettings();
        settings.setJavaScriptEnabled(true);
        settings.setJavaScriptEnabled(true);
        settings.setJavaScriptCanOpenWindowsAutomatically(true);
        settings.setUseWideViewPort(true);
        settings.setLayoutAlgorithm(WebSettings.LayoutAlgorithm.NARROW_COLUMNS);
        settings.setDisplayZoomControls(false);
        settings.setJavaScriptEnabled(true);
        settings.setAllowFileAccess(true);
        settings.setBuiltInZoomControls(true);
        settings.setSupportZoom(true);
        findViewById(R.id.logon_back).setOnClickListener(new View$OnClickListenerC0432());
    }
}
