360手机助手 v3.3.0版本的 MD5 值为:127c345ad16bbebee6e347381328afd0
以下内容为反编译后的 s.java 源代码,内容仅作参考
package com.qihoo.appstore.playgame;
import android.content.Context;
import android.os.AsyncTask;
import android.view.View;
import android.widget.GridView;
import android.widget.ListAdapter;
import android.widget.TextView;
import com.qihoo.appstore.AppStoreApplication;
import com.qihoo.appstore.resource.app.App;
import com.qihoo.appstore.utils.dc;
import com.qihoo.freewifi.push.R;
import java.util.Iterator;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
class s extends AsyncTask {
final PlayGameActivity f3137b;
Map f3136a = new ConcurrentHashMap();
private int c = 0;
public s(PlayGameActivity playGameActivity) {
this.f3137b = playGameActivity;
}
@Override
public Boolean doInBackground(Object... objArr) {
Map map;
Map map2;
Map map3;
Map map4;
Map map5;
boolean z;
q qVar;
Map map6;
Context applicationContext = this.f3137b.getApplicationContext();
map = this.f3137b.k;
com.qihoo.appstore.l.d.a(applicationContext, map);
map2 = this.f3137b.k;
if (map2.size() == 0) {
return false;
}
map3 = this.f3137b.j;
this.c = map3.size();
map4 = this.f3137b.k;
for (Map.Entry entry : map4.entrySet()) {
String str = (String) entry.getKey();
if (a.a().a(str)) {
App app = new App();
app.m((String) entry.getKey());
app.o(((com.qihoo.appstore.l.a.c) entry.getValue()).h());
map6 = this.f3137b.j;
map6.put(str, app);
} else if (a.a().b(str)) {
}
}
String str2 = dc.d ? "http://test1.baohe.mobilem.360.cn/index/getTidySoftInfoByIds?gamefiter=1" : "http://openbox.mobilem.360.cn/index/getTidySoftInfoByIds?gamefiter=1";
String str3 = "&pnames=";
map5 = this.f3137b.k;
Iterator it = map5.entrySet().iterator();
while (it.hasNext()) {
String i = ((com.qihoo.appstore.l.a.c) ((Map.Entry) it.next()).getValue()).i();
str3 = i.length() > 0 ? (str3 + i) + "," : str3;
}
String c = com.qihoo.appstore.http.h.a().c(str2, str3.substring(0, str3.length() - 1).toString());
if (c != null) {
z = v.a(c, this.f3136a);
com.qihoo.appstore.i.g.a(AppStoreApplication.d(), AppStoreApplication.d().getString(R.string.txt_recommend_play_game));
if (this.f3136a.size() > 0) {
qVar = this.f3137b.f;
qVar.a(this.f3136a);
}
} else {
z = false;
}
if (this.f3136a.size() > 0) {
z = true;
}
return Boolean.valueOf(z);
}
@Override
public void onPostExecute(Boolean bool) {
View view;
Map map;
Map map2;
View view2;
v vVar;
GridView gridView;
aa aaVar;
TextView textView;
TextView textView2;
TextView textView3;
TextView textView4;
TextView textView5;
TextView textView6;
TextView textView7;
Map map3;
Map map4;
Map map5;
view = this.f3137b.e;
view.setVisibility(8);
if (!bool.booleanValue()) {
map5 = this.f3137b.j;
map5.clear();
}
for (Map.Entry entry : this.f3136a.entrySet()) {
String str = (String) entry.getKey();
map3 = this.f3137b.k;
if (map3.containsKey(str)) {
map4 = this.f3137b.j;
map4.put(str, entry.getValue());
}
}
map = this.f3137b.j;
if (map.size() <= 0) {
if (bool.booleanValue()) {
textView3 = this.f3137b.s;
textView3.setVisibility(0);
textView4 = this.f3137b.s;
textView4.setText(R.string.recommned_guess_you_like_tip_nogames);
return;
}
textView5 = this.f3137b.t;
textView5.setVisibility(0);
textView6 = this.f3137b.u;
textView6.setVisibility(4);
textView7 = this.f3137b.t;
textView7.setText(R.string.recommned_guess_you_like_tip_neterr);
return;
}
try {
map2 = this.f3137b.j;
if (map2.size() == 0) {
textView = this.f3137b.s;
textView.setVisibility(0);
textView2 = this.f3137b.s;
textView2.setText(R.string.recommned_guess_you_like_tip_nogames);
} else {
view2 = this.f3137b.d;
view2.setVisibility(0);
PlayGameActivity playGameActivity = this.f3137b;
vVar = this.f3137b.B;
playGameActivity.r = vVar.b();
gridView = this.f3137b.q;
aaVar = this.f3137b.r;
gridView.setAdapter((ListAdapter) aaVar);
this.f3137b.c();
}
} catch (Throwable th) {
th.printStackTrace();
}
this.f3136a.clear();
this.f3136a = null;
}
@Override
public void onPreExecute() {
}
}