正在查看: Share Any v2.1.7 应用的 WebHotspotActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Share Any v2.1.7 应用的 WebHotspotActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package net.shareany.app.activity.pc;
import a6.m;
import a6.s;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.res.ColorStateList;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.appcompat.app.b;
import com.google.android.material.snackbar.Snackbar;
import f.d;
import h9.j;
import h9.t;
import java.io.IOException;
import java.util.ArrayList;
import m5.h;
import n5.l;
import n5.o;
import nd.c;
import org.greenrobot.eventbus.ThreadMode;
import s5.e;
import x5.i;
public class WebHotspotActivity extends ed.a {
public static final int M = 0;
public o I;
public c J;
public boolean K;
public e L;
public class a implements DialogInterface.OnClickListener {
public a(WebHotspotActivity webHotspotActivity) {
}
@Override
public void onClick(DialogInterface dialogInterface, int i) {
d.d(h.a(new byte[]{-29, 76, -10, 118, -4, 70, -32, 90, -28, 70, -32, 118, -10, 72, -9, 66, -53, 89, -26, 76, -25, 90, -15, 77, -53, 74, -11, 71, -9, 76, -8}, new byte[]{-108, 41}));
dialogInterface.dismiss();
}
}
public class b implements DialogInterface.OnClickListener {
public b() {
}
@Override
public void onClick(DialogInterface dialogInterface, int i) {
d.d(h.a(new byte[]{-83, -33, -72, -27, -78, -43, -82, -55, -86, -43, -82, -27, -72, -37, -71, -47, -123, -54, -88, -33, -87, -55, -65, -34, -123, -33, -94, -45, -82}, new byte[]{-38, -70}));
WebHotspotActivity.this.finish();
}
}
public final void C() {
if (this.J.j()) {
this.J.q();
}
}
public final void D(je.c cVar, String str, String str2) {
ArrayList arrayList = (ArrayList) m.d(true, q5.a.a);
String c = arrayList.size() != 0 ? s.c(this, ((a6.a) arrayList.get(0)).b) : null;
if (c == null || cVar == null || !this.J.j()) {
((TextView) this.L.f).setText((CharSequence) null);
((ImageView) this.L.d).setImageResource(2131165532);
t0.d.a((ImageView) this.L.d, this.E);
} else {
((TextView) this.L.f).setText(c);
try {
p9.b b2 = new j().b(c, h9.a.p, 400, 400);
int i = b2.a;
int i2 = b2.b;
int[] iArr = new int[i * i2];
for (int i3 = 0; i3 < i2; i3++) {
int i4 = i3 * i;
for (int i5 = 0; i5 < i; i5++) {
iArr[i4 + i5] = b2.b(i5, i3) ? -16777216 : -1;
}
}
Bitmap createBitmap = Bitmap.createBitmap(i, i2, Bitmap.Config.ARGB_8888);
createBitmap.setPixels(iArr, 0, i, 0, 0, i, i2);
com.bumptech.glide.c.e(this).n(createBitmap).M((ImageView) this.L.d);
} catch (t e) {
e.printStackTrace();
}
t0.d.a((ImageView) this.L.d, (ColorStateList) null);
}
((TextView) this.L.g).setText(str);
((TextView) this.L.g).setVisibility(str == null ? 8 : 0);
((TextView) this.L.h).setText(str2);
((TextView) this.L.h).setVisibility(str2 == null ? 8 : 0);
}
public Snackbar d(int i, Object... objArr) {
return Snackbar.j((LinearLayout) this.L.e, getString(i, objArr), 0);
}
public void onBackPressed() {
if (!this.J.j()) {
l.b(this, new s0.b(this));
return;
}
d.d(h.a(new byte[]{126, -14, 107, -56, 97, -8, 125, -28, 121, -8, 125, -56, 107, -10, 106, -4, 86, -25, 123, -14, 122, -28, 108, -13}, new byte[]{9, -105}));
b.a aVar = new b.a(this);
aVar.f(2131820658);
aVar.b(2131820656);
aVar.e(2131820659, new b());
aVar.c(2131820655, new a(this));
aVar.h();
}
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
View inflate = getLayoutInflater().inflate(2131492910, (ViewGroup) null, false);
int i = 2131296381;
FrameLayout frameLayout = (FrameLayout) androidx.activity.l.c(inflate, 2131296381);
if (frameLayout != null) {
i = 2131296666;
ImageView imageView = (ImageView) androidx.activity.l.c(inflate, 2131296666);
if (imageView != null) {
i = 2131296687;
LinearLayout linearLayout = (LinearLayout) androidx.activity.l.c(inflate, 2131296687);
if (linearLayout != null) {
i = 2131297041;
TextView textView = (TextView) androidx.activity.l.c(inflate, 2131297041);
if (textView != null) {
i = 2131297063;
TextView textView2 = (TextView) androidx.activity.l.c(inflate, 2131297063);
if (textView2 != null) {
i = 2131297067;
TextView textView3 = (TextView) androidx.activity.l.c(inflate, 2131297067);
if (textView3 != null) {
e eVar = new e((LinearLayout) inflate, frameLayout, imageView, linearLayout, textView, textView2, textView3);
this.L = eVar;
setContentView(eVar.a());
if (u() != null) {
u().m(true);
u().r(2131820642);
}
ge.b.b().j(this);
this.J = new nd.d(this, 8080);
String a2 = h.a(new byte[]{76, 56, 2, 56, 95, 41, 2, 41, 90, 59, 2, 107, 29, 110, 26, 108, 29, 111, 28, 107, 28, 106, 29, 106, 30, 106, 27, 118, 25, 105, 24, 105, 22, 108, 26, 97, 27, 97}, new byte[]{47, 89});
e eVar2 = this.L;
this.I = new o(this, a2, (FrameLayout) eVar2.c, 2131493042);
((TextView) eVar2.h).setOnClickListener(new hd.a(this, 0));
((TextView) this.L.f).setOnClickListener(new hd.a(this, 1));
l.a(this);
return;
}
}
}
}
}
}
throw new NullPointerException(h.a(new byte[]{-62, 63, -4, 37, -26, 56, -24, 118, -3, 51, -2, 35, -26, 36, -22, 50, -81, 32, -26, 51, -8, 118, -8, 63, -5, 62, -81, 31, -53, 108, -81}, new byte[]{-113, 86}).concat(inflate.getResources().getResourceName(i)));
}
@Override
public void onDestroy() {
this.I.a();
ge.b.b().l(this);
C();
super.onDestroy();
}
@org.greenrobot.eventbus.a(threadMode = ThreadMode.MAIN)
public void onMessageEvent(ld.d dVar) {
d.d(h.a(new byte[]{30, -31, 11, -37, 1, -21, 29, -9, 25, -21, 29, -37, 29, -10, 8, -22, 26, -30, 12, -10, 54, -9, 12, -9, 26, -19, 6, -22, 54, -9, 29, -27, 27, -16}, new byte[]{105, -124}));
if (!this.K || isFinishing()) {
return;
}
Intent intent = new Intent((Context) this, (Class<?>) WebOpenedActivity.class);
intent.putExtra(h.a(new byte[]{116, -112, 111, -117, 79, -102, 110, -119, 121, -115}, new byte[]{28, -1}), ((TextView) this.L.f).getText().toString());
startActivity(intent);
}
@org.greenrobot.eventbus.a(threadMode = ThreadMode.MAIN)
public void onMessageEvent2(ld.c cVar) {
d.d(h.a(new byte[]{71, 11, 82, 49, 88, 1, 68, 29, 64, 1, 68, 49, 68, 28, 81, 0, 67, 8, 85, 28, 111, 29, 85, 29, 67, 7, 95, 0, 111, 11, 94, 10}, new byte[]{48, 110}));
C();
finish();
}
@org.greenrobot.eventbus.a(threadMode = ThreadMode.MAIN)
public void onMessageEvent3(u5.a aVar) {
d.d(h.a(new byte[]{-73, -95, -94, -101, -88, -85, -76, -73, -80, -85, -76, -101, -76, -74, -95, -86, -77, -94, -91, -74, -97, -93, -78, -85, -75, -76, -97, -89, -78, -95, -95, -80, -91, -96}, new byte[]{-64, -60}));
if (aVar.a == i.b.b) {
nd.d dVar = (nd.d) this.J;
dVar.q.add(Long.valueOf(aVar.b));
}
}
public boolean onOptionsItemSelected(MenuItem menuItem) {
if (menuItem.getItemId() != 16908332) {
return super/*android.app.Activity*/.onOptionsItemSelected(menuItem);
}
onBackPressed();
return true;
}
@Override
public void onPause() {
this.I.b();
this.K = false;
super.onPause();
}
@Override
public void onResume() {
super.onResume();
this.K = true;
this.I.c();
}
@Override
public void y() {
D(null, null, null);
}
@Override
public void z(String str, String str2, int i) {
h.a(new byte[]{92, -37, 92, -125, 87, -41, 69, -47, 80, -125, 76, -41, 80, -45, 4, -48, 65, -47, 82, -58, 86}, new byte[]{36, -93});
C();
try {
this.J.p(5000, true);
} catch (IOException e) {
e.printStackTrace();
}
try {
je.c cVar = new je.c();
cVar.A(h.a(new byte[]{-117, -108, -85, -126, -120, -122}, new byte[]{-27, -29}), str);
cVar.A(h.a(new byte[]{0, -93, 62, -93, 10}, new byte[]{110, -44}), str2);
cVar.A(h.a(new byte[]{-17, -26, -54, -9, -8, -33, -26, -1, -11}, new byte[]{-127, -110}), Integer.valueOf(i));
D(cVar, str, str2);
} catch (Exception e2) {
e2.printStackTrace();
}
}
}