正在查看: Share Any v2.1.7 应用的 ContentSharingActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Share Any v2.1.7 应用的 ContentSharingActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package net.shareany.app.activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.util.DisplayMetrics;
import android.view.Display;
import android.view.MenuItem;
import android.widget.FrameLayout;
import androidx.appcompat.widget.Toolbar;
import androidx.fragment.app.b0;
import androidx.viewpager.widget.ViewPager;
import com.google.android.gms.ads.AdRequest;
import com.google.android.gms.ads.AdSize;
import com.google.android.gms.ads.AdView;
import com.google.android.material.tabs.TabLayout;
import com.sax.android.framework.widget.SaxActionMode;
import java.util.ArrayList;
import java.util.Objects;
import m5.h;
import n5.l;
import o5.h;
import p5.b;
import p5.c;
import w5.c0;
import w5.f;
import w5.r;
import w5.w;
public class ContentSharingActivity extends p5.b {
public SaxActionMode H;
public z5.d I;
public b.a J;
public FrameLayout K;
public AdView L;
public static final String N = h.a(new byte[]{36, 111, 53, 101, 32, 68, 41, 118, 51, 114, 17, 123, 32, 99, 39, 120, 51, 122}, new byte[]{65, 23});
public static final String O = h.a(new byte[]{-49, 45, -34, 39, -53, 7, -49, 38, -33, 57, -34, 1, -45, 37, -49}, new byte[]{-86, 85});
public static final String M = "ContentSharingActivity";
public class a extends o5.h {
public final SaxActionMode.c i;
public final ViewPager j;
public a(Context context, b0 b0Var, SaxActionMode.c cVar, ViewPager viewPager) {
super(context, b0Var);
this.i = cVar;
this.j = viewPager;
}
}
public class b implements TabLayout.d {
public final ViewPager a;
public final o5.h b;
public class a implements Runnable {
public final p5.c a;
public a(b bVar, p5.c cVar) {
this.a = cVar;
}
@Override
public void run() {
((qa.d) this.a).e0.f();
}
}
public b(ViewPager viewPager, o5.h hVar) {
this.a = viewPager;
this.b = hVar;
}
public void a(TabLayout.g gVar) {
}
public void b(TabLayout.g gVar) {
this.a.setCurrentItem(gVar.d);
b.a aVar = (p5.c) this.b.g(gVar.d);
ContentSharingActivity contentSharingActivity = ContentSharingActivity.this;
((c.h) contentSharingActivity.I).a = aVar;
contentSharingActivity.J = aVar instanceof b.a ? aVar : null;
if (((qa.d) aVar).e0 != null) {
new Handler(Looper.getMainLooper()).postDelayed(new a(this, aVar), 200L);
}
}
public void c(TabLayout.g gVar) {
}
}
public class c implements Runnable {
public c() {
}
@Override
public void run() {
?? r0 = ContentSharingActivity.this;
String str = ContentSharingActivity.M;
Objects.requireNonNull(r0);
AdView adView = new AdView((Context) r0);
r0.L = adView;
adView.setAdUnitId(h.a(new byte[]{95, 91, 17, 91, 76, 74, 17, 74, 73, 88, 17, 8, 14, 13, 9, 15, 14, 12, 15, 8, 15, 9, 14, 9, 13, 9, 8, 21, 11, 8, 4, 3, 14, 8, 12, 13, 4, 13}, new byte[]{60, 58}));
r0.K.addView(r0.L);
Display defaultDisplay = r0.getWindowManager().getDefaultDisplay();
DisplayMetrics displayMetrics = new DisplayMetrics();
defaultDisplay.getMetrics(displayMetrics);
float f = displayMetrics.density;
float width = r0.K.getWidth();
if (width == 0.0f) {
width = displayMetrics.widthPixels;
}
r0.L.setAdSize(AdSize.getCurrentOrientationAnchoredAdaptiveBannerAdSize((Context) r0, (int) (width / f)));
AdRequest build = new AdRequest.Builder().build();
r0.L.setAdListener(new ed.d(r0));
r0.L.loadAd(build);
}
}
public enum d {
a,
b
}
public enum e {
a,
b
}
public void onBackPressed() {
b.a aVar = this.J;
if (aVar == null || !aVar.onBackPressed()) {
SaxActionMode saxActionMode = this.H;
if (!saxActionMode.getEngineToolbar().e.c.containsKey(this.I)) {
l.b(this, new ed.c(this, 0));
return;
}
SaxActionMode saxActionMode2 = this.H;
saxActionMode2.getEngineToolbar().e.a(this.I);
}
}
public void onCreate(Bundle bundle) {
CharSequence a2;
super.onCreate(bundle);
setContentView(2131492895);
Toolbar findViewById = findViewById(2131297016);
findViewById.setTitle(2131821080);
t().A(findViewById);
if (u() != null) {
u().m(true);
}
this.H = findViewById(2131296358);
TabLayout findViewById2 = findViewById(2131296359);
ViewPager findViewById3 = findViewById(2131296360);
this.H.getEngineToolbar().g = false;
this.I = new z5.d((p5.d) null);
if (getIntent() != null) {
Intent intent = getIntent();
String str = N;
if (intent.hasExtra(str)) {
this.I.b = e.valueOf(getIntent().getStringExtra(str));
}
Intent intent2 = getIntent();
String str2 = O;
if (intent2.hasExtra(str2)) {
this.I.c = d.valueOf(getIntent().getStringExtra(str2));
}
}
a aVar = new a(this, q(), new SaxActionMode.c(this.H, this.I), findViewById3);
Bundle bundle2 = new Bundle();
bundle2.putBoolean(h.a(new byte[]{55, 40, 49, 9, 51, 54, 51, 57, 34, 24, 47, 25, 58, 51, 53, 49}, new byte[]{86, 90}), true);
((o5.h) aVar).g.add(new h.a(0L, w5.e.class, (Bundle) null));
((o5.h) aVar).g.add(new h.a(1L, c0.class, (Bundle) null));
((o5.h) aVar).g.add(new h.a(2L, r.class, (Bundle) null));
h.a aVar2 = new h.a(3L, f.class, bundle2);
aVar2.d = getString(2131821014);
((o5.h) aVar).g.add(aVar2);
((o5.h) aVar).g.add(new h.a(4L, w.class, (Bundle) null));
if (aVar.c() > 0) {
for (int i = 0; i < aVar.c(); i++) {
h.a j = aVar.j(i);
z5.a g = aVar.g(i);
TabLayout.g k = findViewById2.k();
if (g instanceof z5.a) {
int k2 = g.k();
TabLayout tabLayout = k.f;
if (tabLayout == null) {
throw new IllegalArgumentException("Tab not attached to a TabLayout");
}
k.a(h.a.b(tabLayout.getContext(), k2));
}
if (!j.e) {
String str3 = j.d;
if (str3 != null && str3.length() > 0) {
a2 = j.d;
} else if (g instanceof z5.e) {
a2 = ((z5.e) g).a(((o5.h) aVar).h);
}
k.b(a2);
}
findViewById2.a(k, findViewById2.a.isEmpty());
}
}
findViewById3.setAdapter(aVar);
TabLayout.h hVar = new TabLayout.h(findViewById2);
if (findViewById3.U == null) {
findViewById3.U = new ArrayList();
}
findViewById3.U.add(hVar);
b bVar = new b(findViewById3, aVar);
if (!findViewById2.L.contains(bVar)) {
findViewById2.L.add(bVar);
}
findViewById3.setCurrentItem(2);
FrameLayout frameLayout = (FrameLayout) findViewById(2131296676);
this.K = frameLayout;
frameLayout.post(new c());
l.a(getApplicationContext());
}
public void onDestroy() {
AdView adView = this.L;
if (adView != null) {
adView.destroy();
}
super/*g.j*/.onDestroy();
}
public boolean onOptionsItemSelected(MenuItem menuItem) {
if (menuItem.getItemId() != 16908332) {
return super/*android.app.Activity*/.onOptionsItemSelected(menuItem);
}
l.b(this, new ed.c(this, 1));
return true;
}
public void onPause() {
AdView adView = this.L;
if (adView != null) {
adView.pause();
}
super.onPause();
}
public void onResume() {
super.onResume();
AdView adView = this.L;
if (adView != null) {
adView.resume();
}
}
}