360手机助手 v3.3.0版本的 MD5 值为:127c345ad16bbebee6e347381328afd0

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


package com.qihoo.appstore.activities;

import android.os.AsyncTask;
import android.text.TextUtils;
import com.qihoo.appstore.iconmanager.RemoteIconView;
import com.qihoo.appstore.resource.app.App;
import com.qihoo.freewifi.push.R;
import com.qihoo.speedometer.Config;
import com.qihoo.speedometer.HttpConst;
import java.util.ArrayList;

class ia extends AsyncTask {

    final String f1015a;

    final ShareActivity f1016b;
    private App c = null;

    public ia(ShareActivity shareActivity, String str) {
        this.f1016b = shareActivity;
        this.f1015a = str;
    }

    @Override
    public Void doInBackground(Void... voidArr) {
        String str;
        try {
            StringBuffer stringBuffer = new StringBuffer();
            stringBuffer.append(com.qihoo.appstore.utils.dc.d() + this.f1015a);
            ArrayList arrayList = (ArrayList) com.qihoo.appstore.http.h.a().a(stringBuffer.toString(), 3).get(HttpConst.APP_LIST_KEY);
            if (arrayList == null || arrayList.size() <= 0) {
                return null;
            }
            this.c = (App) arrayList.get(0);
            return null;
        } catch (Exception e) {
            str = ShareActivity.f701a;
            com.qihoo.appstore.utils.bk.e(str, e.getMessage());
            return null;
        }
    }

    @Override
    public void onPostExecute(Void r6) {
        RemoteIconView remoteIconView;
        String str;
        RemoteIconView remoteIconView2;
        String str2;
        if (this.c == null || this.c.aR == null || TextUtils.isEmpty(this.c.aR.d)) {
            this.f1016b.i = "http://p3.qhimg.com/t018a713971a484df7e.jpg";
            remoteIconView = this.f1016b.f;
            str = this.f1016b.i;
            remoteIconView.a(str, R.drawable.default_download);
        } else {
            if (!TextUtils.isEmpty(this.c.aR.d)) {
                this.f1016b.i = this.c.aR.d.split("\\|")[0];
            } else if (TextUtils.isEmpty(this.c.aR.h)) {
                this.f1016b.i = "http://p3.qhimg.com/t018a713971a484df7e.jpg";
            } else {
                this.f1016b.i = this.c.aR.h.split("\\|")[0];
            }
            remoteIconView2 = this.f1016b.f;
            str2 = this.f1016b.i;
            remoteIconView2.a(str2, R.drawable.default_download);
        }
        if (this.c != null) {
            if (TextUtils.isEmpty(this.c.af())) {
                this.f1016b.q = Config.INVALID_IP;
            } else {
                this.f1016b.q = String.format(this.f1016b.getResources().getString(R.string.share_template_link), this.c.af());
            }
        }
    }
}