正在查看: Kahramaa v15.23.3 应用的 n1.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Kahramaa v15.23.3 应用的 n1.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package gc;
import android.annotation.SuppressLint;
import android.app.Dialog;
import android.app.DialogFragment;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.widget.ImageButton;
import com.qa.kahramaa.kahramaa.base.activities.MainActivity;
@SuppressLint({"ValidFragment"})
public final class n1 extends DialogFragment implements View.OnClickListener {
public WebView f7957n;
public bb.a f7958o;
public ImageButton f7959p;
public ImageButton q;
public String f7960r = "https://drive.google.com/viewerng/viewer?embedded=true&url=https://www.km.com.qa/CustomerService/Documents/TermsAndConditions.pdf";
public jb.d f7961s;
@SuppressLint({"ValidFragment"})
public n1(bb.a aVar) {
this.f7958o = aVar;
}
@Override
public final void onClick(View view) {
int id2 = view.getId();
if (id2 == 2131296880) {
this.f7961s.a("");
dismiss();
return;
}
if (id2 != 2131297525) {
return;
}
try {
Intent intent = new Intent("android.intent.action.SEND");
intent.setType("text/plain");
intent.putExtra("android.intent.extra.TEXT", getResources().getString(2131690515) + this.f7960r);
startActivity(Intent.createChooser(intent, "Share"));
} catch (Exception e10) {
e10.printStackTrace();
}
}
@Override
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
getDialog().getWindow().requestFeature(1);
View inflate = layoutInflater.inflate(2131493148, (ViewGroup) null);
this.f7957n = (WebView) inflate.findViewById(2131296282);
this.f7959p = (ImageButton) inflate.findViewById(2131296880);
this.q = (ImageButton) inflate.findViewById(2131297525);
this.f7959p.setOnClickListener(this);
this.q.setOnClickListener(this);
try {
((MainActivity) this.f7958o).D();
} catch (Exception e10) {
e10.printStackTrace();
}
this.f7957n.loadUrl(this.f7960r);
WebSettings settings = this.f7957n.getSettings();
settings.setMinimumFontSize(18);
settings.setLoadWithOverviewMode(true);
settings.setUseWideViewPort(true);
settings.setDisplayZoomControls(false);
settings.setBuiltInZoomControls(true);
settings.setJavaScriptEnabled(true);
settings.setDomStorageEnabled(true);
this.f7957n.setWebViewClient(new m1(this));
return inflate;
}
@Override
public final void onDismiss(DialogInterface dialogInterface) {
if (getActivity() != null) {
getActivity().setTheme(2131755026);
}
super.onDismiss(dialogInterface);
}
@Override
public final void onResume() {
super.onResume();
try {
if (this.f7958o.L.k() == null || this.f7958o.L.k().f11801s.a() == 0) {
return;
}
za.a a10 = za.a.a();
getString(2131689915);
this.f7958o.L.k().f11801s.a();
a10.getClass();
} catch (Exception e10) {
e10.printStackTrace();
}
}
@Override
public final void onStart() {
super.onStart();
Dialog dialog = getDialog();
if (dialog != null) {
dialog.getWindow().setLayout(-1, -1);
dialog.getWindow().setBackgroundDrawable(new ColorDrawable(-1));
}
}
}