正在查看: Meine NEW v2.0.3616 应用的 h.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Meine NEW v2.0.3616 应用的 h.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package p5;
import a0.a;
import android.R;
import android.graphics.Typeface;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.appcompat.app.AlertController;
import androidx.appcompat.app.e;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.q;
import com.google.zxing.ResultPoint;
import com.journeyapps.barcodescanner.BarcodeCallback;
import com.journeyapps.barcodescanner.BarcodeResult;
import com.journeyapps.barcodescanner.CompoundBarcodeView;
import com.microsoft.identity.common.adal.internal.AuthenticationConstants;
import java.util.List;
public class h extends Fragment {
public static final int f = 0;
public CompoundBarcodeView c;
public Boolean d = Boolean.FALSE;
public final a e = new a();
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
View inflate = layoutInflater.inflate(2131493068, viewGroup, false);
((TextView) inflate.findViewById(2131297000)).setTypeface(Typeface.createFromAsset(getActivity().getAssets(), "Geometria-Regular.ttf"));
this.d = Boolean.FALSE;
CompoundBarcodeView compoundBarcodeView = (CompoundBarcodeView) inflate.findViewById(2131296369);
this.c = compoundBarcodeView;
compoundBarcodeView.decodeContinuous(this.e);
this.c.setStatusText("");
inflate.findViewById(2131296410).setOnClickListener(new g5.b(this, 10));
inflate.findViewById(2131296407).setOnClickListener(new x3.c(this, 9));
if (b0.a.checkSelfPermission(getActivity(), "android.permission.CAMERA") != 0) {
q activity = getActivity();
int i = a0.a.a;
if (a.c.c(activity, "android.permission.CAMERA")) {
e.a aVar = new e.a(getActivity());
aVar.d(2131886124);
aVar.b(2131886119);
aVar.c(R.string.yes, new g5.d(this, 7));
aVar.a.c = R.drawable.ic_dialog_info;
aVar.e();
} else {
a0.a.a(getActivity(), new String[]{"android.permission.CAMERA"}, 18);
}
} else {
this.c.resume();
}
return inflate;
}
public final void onPause() {
this.c.pause();
super.onPause();
}
public final void onResume() {
this.c.resume();
super.onResume();
}
public class a implements BarcodeCallback {
public a() {
}
public final void a(String str) {
e.a aVar = new e.a(h.this.getActivity());
AlertController.b bVar = aVar.a;
bVar.c = R.drawable.ic_lock_lock;
aVar.d(2131886524);
bVar.g = str;
aVar.c(R.string.ok, new g5.e(this, 4));
aVar.e();
}
@Override
public final void barcodeResult(BarcodeResult barcodeResult) {
h hVar = h.this;
if (hVar.d.booleanValue() || barcodeResult.getText() == null) {
return;
}
hVar.d = Boolean.TRUE;
barcodeResult.getText();
if (!barcodeResult.getText().startsWith("MAPPREGCODE")) {
if (barcodeResult.getText().startsWith("https://meine.new.de")) {
a(hVar.getString(2131886526));
return;
} else {
a(hVar.getString(2131886525));
return;
}
}
try {
String substring = barcodeResult.getText().substring(11);
if (substring.contains(AuthenticationConstants.Broker.CHALLENGE_REQUEST_CERT_AUTH_DELIMETER)) {
int indexOf = substring.indexOf(AuthenticationConstants.Broker.CHALLENGE_REQUEST_CERT_AUTH_DELIMETER);
String substring2 = substring.substring(0, indexOf);
String substring3 = substring.substring(indexOf + 1);
if (substring2.length() != 12 || substring3.length() > 6 || substring3.length() < 3) {
a(hVar.getString(2131886525));
} else {
hVar.getClass();
}
} else if (substring.length() == 13 && substring.startsWith("L")) {
hVar.getClass();
} else if (substring.length() == 12) {
hVar.getClass();
} else {
a(hVar.getString(2131886525));
}
} catch (Exception e) {
g5.j.l(e);
}
}
@Override
public final void possibleResultPoints(List<ResultPoint> list) {
}
}
}