百度手机卫士 v8.8.0版本的 MD5 值为:a85894a6923c8a39f0c3a3a686ad7443
以下内容为反编译后的 SjwsReporterActivity.java 源代码,内容仅作参考
package com.dianxinos.optimizer.module.account.reporter.ui;
import android.content.res.Resources;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.text.TextUtils;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ListAdapter;
import android.widget.ListView;
import android.widget.TextView;
import cn.opda.a.phonoalbumshoushou.R;
import com.baidu.hao123.internal.config.Config;
import com.dianxinos.common.ui.view.StickyLayout;
import com.dianxinos.optimizer.ui.DxTitleBar;
import dxoptimizer.acx;
import dxoptimizer.adp;
import dxoptimizer.aww;
import dxoptimizer.awx;
import dxoptimizer.axj;
import dxoptimizer.cag;
import dxoptimizer.cah;
import dxoptimizer.cai;
import dxoptimizer.cao;
import dxoptimizer.cap;
import dxoptimizer.caq;
import dxoptimizer.car;
import dxoptimizer.gim;
import dxoptimizer.hti;
import dxoptimizer.icu;
import dxoptimizer.mp;
import dxoptimizer.tv;
public class SjwsReporterActivity extends axj implements View.OnClickListener, View.OnTouchListener, acx, adp, awx {
private DxTitleBar a;
private View b;
private View c;
private View d;
private View e;
private ImageView f;
private TextView g;
private TextView h;
private Button j;
private ListView k;
private StickyLayout l;
private int n;
private int o;
private int p;
private int q;
private int r;
private int s;
private int t;
private WindowManager u;
private int m = 0;
private Handler v = new aww(this);
private boolean w = true;
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(R.layout.jadx_deobf_0x00000a72);
c();
d();
icu.a("sk_act_c", "a_report", (Number) 1);
}
private void c() {
this.a = (DxTitleBar) findViewById(R.id.jadx_deobf_0x00001ab6);
this.b = findViewById(R.id.sticky_header);
this.k = (ListView) findViewById(R.id.jadx_deobf_0x000017d8);
this.c = findViewById(R.id.jadx_deobf_0x00001ab8);
this.d = findViewById(R.id.jadx_deobf_0x00001abb);
this.e = findViewById(R.id.jadx_deobf_0x00001abd);
this.f = (ImageView) findViewById(R.id.jadx_deobf_0x00001ab9);
this.g = (TextView) findViewById(R.id.jadx_deobf_0x0000105c);
this.h = (TextView) findViewById(R.id.jadx_deobf_0x00001aba);
this.j = (Button) findViewById(R.id.jadx_deobf_0x00001abc);
this.l = (StickyLayout) findViewById(R.id.jadx_deobf_0x00001ab7);
this.l.setOnTouchListener(this);
View inflate = getLayoutInflater().inflate(R.layout.jadx_deobf_0x00000a74, (ViewGroup) null);
View inflate2 = getLayoutInflater().inflate(R.layout.jadx_deobf_0x00000a73, (ViewGroup) null);
this.k.addHeaderView(inflate);
this.k.addFooterView(inflate2);
this.k.setDivider(null);
this.a.a((acx) this);
tv.a(this.a, getResources().getDrawable(R.color.jadx_deobf_0x00000eb3));
this.l.setOnGiveUpTouchEventListener(this);
this.l.setDragProportion(0.8f);
this.j.setOnClickListener(this);
}
private void d() {
if (cah.a(this, cao.a(this).a()).g()) {
this.u = (WindowManager) getSystemService("window");
e();
this.a.b(R.string.jadx_deobf_0x000028e1);
this.o = cah.d(this);
cai b = cah.b(this, this.o);
String[] strArr = {String.format(b.b(), Integer.valueOf(cah.a(this, cao.a(this).a()).i(this.o))), b.c()};
this.g.setText(strArr[0]);
this.h.setText(strArr[1]);
if (!TextUtils.isEmpty(b.a())) {
new mp(this).a(b.a(), this.f);
} else {
this.f.setImageDrawable(getResources().getDrawable(cah.a(this.o)));
}
String r = cag.r(this);
if (!TextUtils.isEmpty(r)) {
this.j.setText(r);
} else {
this.j.setText(getString(R.string.jadx_deobf_0x000028dd));
}
} else {
this.b.setVisibility(8);
}
this.k.setAdapter((ListAdapter) new car(this, this, cah.e(this)));
g();
cag.f(this, System.currentTimeMillis());
cah.a(h());
}
private void e() {
this.t = 0;
if (Build.VERSION.SDK_INT < 21) {
try {
this.t = b();
} catch (Exception e) {
this.t = 0;
}
}
this.p = this.u.getDefaultDisplay().getHeight();
this.l.post(new cap(this));
}
public static int b() {
return Resources.getSystem().getDimensionPixelSize(Resources.getSystem().getIdentifier("status_bar_height", "dimen", Config.OS));
}
public void f() {
LinearLayout.LayoutParams layoutParams = (LinearLayout.LayoutParams) this.d.getLayoutParams();
layoutParams.height = (((this.p - this.q) - this.r) - this.s) - this.t;
this.d.setLayoutParams(layoutParams);
this.d.requestLayout();
this.l.setOriginalHeaderHeight(this.p - this.q);
}
private void g() {
hti.a().a(new caq(this));
}
@Override
public void handleMessage(Message message) {
switch (message.what) {
case 10:
this.l.setDragProportion(0.8f);
return;
default:
return;
}
}
@Override
public boolean a(MotionEvent motionEvent) {
if (this.k.getFirstVisiblePosition() != 0) {
return false;
}
this.l.setDragProportion(0.19999999f);
View childAt = this.k.getChildAt(0);
return childAt != null && childAt.getTop() >= 0;
}
@Override
public boolean onTouch(View view, MotionEvent motionEvent) {
this.l.onInterceptTouchEvent(motionEvent);
this.n = this.l.getHeaderHeight();
float dragProportion = this.l.getDragProportion() * this.l.getOriginalHeaderHeight();
int y = (int) motionEvent.getY();
if (motionEvent.getAction() == 2) {
this.n = (y - this.m) + this.n;
} else if (motionEvent.getAction() == 1) {
f();
if (this.n > dragProportion) {
this.v.sendEmptyMessageDelayed(10, 500L);
this.w = true;
} else {
this.w = false;
cah.a("srdls");
}
}
this.m = y;
return false;
}
@Override
public void onClick(View view) {
if (view == this.j) {
int f = cah.f(this);
gim.a(this, this.c, f > 0 ? getString(R.string.jadx_deobf_0x000028df, new Object[]{Integer.valueOf(f)}) : getString(R.string.jadx_deobf_0x000028de, new Object[]{Integer.valueOf(cah.f(this))}), "https://mshoujiweishi.baidu.com/?from=sharefrom855", getString(R.string.jadx_deobf_0x000028e0), "sks_sr", getString(R.string.jadx_deobf_0x00001dae));
icu.a("sk_act_c", "ar_share", (Number) 1);
}
}
@Override
public void l_() {
if (this.w) {
finish();
return;
}
this.l.a(this.l.getHeaderHeight(), this.l.getOriginalHeaderHeight(), 500L);
this.w = true;
this.v.sendEmptyMessageDelayed(10, 500L);
}
@Override
public void onBackPressed() {
if (this.w) {
super.onBackPressed();
return;
}
this.l.a(this.l.getHeaderHeight(), this.l.getOriginalHeaderHeight(), 500L);
this.w = true;
this.v.sendEmptyMessageDelayed(10, 500L);
}
private String h() {
switch (this.o) {
case 0:
return "srtas";
case 1:
return "srtcs";
case 2:
return "srtvs";
case 3:
return "srtts";
default:
return "";
}
}
}