what-the-bank/sources/o/C10318eAn.java

80 lines
2.0 KiB
Java

package o;
import android.content.Intent;
import android.graphics.Bitmap;
import android.net.Uri;
import android.webkit.WebResourceRequest;
import android.webkit.WebView;
import android.webkit.WebViewClient;
/* renamed from: o.eAn, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public final class C10318eAn extends WebViewClient {
private final Sts a;
private final RVV d;
private final Sts e;
/* renamed from: o.eAn$RVV */
/* loaded from: classes5.dex */
public interface RVV {
void aq_();
void v();
}
/* renamed from: o.eAn$Sts */
/* loaded from: classes5.dex */
public interface Sts {
void e();
}
public C10318eAn(RVV rvv) {
this(rvv, null, null);
}
public C10318eAn(RVV rvv, Sts sts, Sts sts2) {
this.d = rvv;
this.e = sts;
this.a = sts2;
}
@Override // android.webkit.WebViewClient
public final void onPageStarted(WebView webView, String str, Bitmap bitmap) {
super.onPageStarted(webView, str, bitmap);
RVV rvv = this.d;
if (rvv != null) {
rvv.v();
}
Sts sts = this.e;
if (sts != null) {
sts.e();
}
}
@Override // android.webkit.WebViewClient
public final boolean shouldOverrideUrlLoading(WebView webView, WebResourceRequest webResourceRequest) {
String obj = webResourceRequest.getUrl().toString();
if (!obj.startsWith("mailto:")) {
webView.loadUrl(obj);
return false;
}
Intent intent = new Intent("android.intent.action.SENDTO");
intent.setData(Uri.parse(obj));
webView.getContext().startActivity(intent);
return true;
}
@Override // android.webkit.WebViewClient
public final void onPageFinished(WebView webView, String str) {
super.onPageFinished(webView, str);
Sts sts = this.a;
if (sts != null) {
sts.e();
}
RVV rvv = this.d;
if (rvv != null) {
rvv.aq_();
}
}
}