百度手机卫士 v8.8.0版本的 MD5 值为:a85894a6923c8a39f0c3a3a686ad7443

以下内容为反编译后的 FamilyGuardLocationActivity.java 源代码,内容仅作参考


package com.dianxinos.optimizer.module.familyguard.guardfamily;

import android.annotation.SuppressLint;
import android.os.Bundle;
import android.text.TextUtils;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.widget.ImageButton;
import android.widget.TextView;
import cn.opda.a.phonoalbumshoushou.R;
import com.dianxinos.optimizer.module.familyguard.view.NameTagView;
import com.dianxinos.optimizer.module.recommend.data.RelationalRecommendConstants;
import com.dianxinos.optimizer.ui.DxTitleBar;
import dxoptimizer.acx;
import dxoptimizer.axk;
import dxoptimizer.dqh;
import dxoptimizer.dqo;
import dxoptimizer.dts;
import dxoptimizer.dtt;
import dxoptimizer.dyw;
import dxoptimizer.hxa;
import dxoptimizer.hzq;
import dxoptimizer.ico;
import dxoptimizer.icu;
import org.json.JSONException;
import org.json.JSONObject;

public class FamilyGuardLocationActivity extends axk implements acx {
    private WebView o;
    private String p;
    private String q;
    private DxTitleBar r;
    private NameTagView s;
    private TextView u;
    private TextView v;
    private ImageButton w;
    private long x;
    private boolean y = true;
    private dqo z;

    @Override
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(R.layout.jadx_deobf_0x000008f3);
        this.p = dqh.a(this).a().c();
        this.q = dqh.a(this).a().b();
        this.o = (WebView) findViewById(R.id.jadx_deobf_0x00001472);
        this.r = (DxTitleBar) findViewById(R.id.jadx_deobf_0x00001471);
        this.r.a(getString(R.string.jadx_deobf_0x000022f5, new Object[]{this.p})).a(this);
        this.s = (NameTagView) findViewById(R.id.jadx_deobf_0x00001476);
        this.s.setBgColor(getResources().getColor(R.color.jadx_deobf_0x00000ef3));
        this.s.setText(this.p);
        this.u = (TextView) findViewById(R.id.jadx_deobf_0x00001477);
        this.v = (TextView) findViewById(R.id.jadx_deobf_0x00001478);
        this.w = (ImageButton) findViewById(R.id.jadx_deobf_0x00001479);
        this.w.setOnClickListener(new dts(this));
        this.y = hzq.c(hxa.a());
        h();
        if (!this.y) {
            icu.a(this);
            icu.b("fg_ctg", "grlnn", (Number) 1);
        }
        icu.b("fg_ctg", "gim_rldd", (Number) 1);
    }

    @Override
    public void onResume() {
        super.onResume();
        if (!this.y && hzq.c(hxa.a()) && this.o != null) {
            this.o.reload();
            this.y = true;
        }
        this.x = System.currentTimeMillis();
        if (!this.y) {
            hxa.a(R.string.jadx_deobf_0x0000235b, 1);
        }
    }

    @SuppressLint({"SetJavaScriptEnabled"})
    private void h() {
        this.z = (dqo) ico.c(getIntent(), "recent_location");
        WebSettings settings = this.o.getSettings();
        settings.setJavaScriptEnabled(true);
        settings.setDomStorageEnabled(true);
        settings.setSupportZoom(false);
        settings.setUseWideViewPort(true);
        this.o.setWebViewClient(new dtt(this));
        this.o.loadUrl("file:///android_asset/familyguardmap.html");
    }

    public void i() {
        double d;
        double d2;
        if (this.z == null) {
            this.v.setText(getString(R.string.jadx_deobf_0x000022f7, new Object[]{this.p}));
            this.u.setText(R.string.jadx_deobf_0x000022f4);
            return;
        }
        String str = this.z.a;
        String str2 = this.z.b;
        if (TextUtils.isEmpty(str) || TextUtils.isEmpty(str2)) {
            d = 0.0d;
            d2 = 0.0d;
        } else {
            d2 = Double.parseDouble(str);
            d = Double.parseDouble(str2);
        }
        if ((d2 == 0.0d && d == 0.0d) || (d2 == Double.MIN_VALUE && d == Double.MIN_VALUE)) {
            this.v.setText(getString(R.string.jadx_deobf_0x000022f7, new Object[]{this.p}));
            this.u.setText(R.string.jadx_deobf_0x000022f4);
            return;
        }
        this.v.setText(dyw.d(this.z.d));
        this.u.setText(dyw.c(this.z.c) + getString(R.string.jadx_deobf_0x000022f3, new Object[]{Integer.valueOf(this.z.e)}));
        if (this.o != null) {
            this.o.loadUrl("javascript:updateLocation(" + d + RelationalRecommendConstants.RECOM_REFERENCE_SPLIT + d2 + ")");
        }
    }

    @Override
    public void onPause() {
        super.onPause();
        try {
            JSONObject jSONObject = new JSONObject();
            jSONObject.put("grlpst", System.currentTimeMillis() - this.x);
            icu.a(this);
            icu.b("fg_ctgj", jSONObject);
        } catch (JSONException e) {
        }
    }

    @Override
    public void l_() {
        finish();
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        this.o.removeAllViews();
        this.o.destroy();
        this.o = null;
    }
}