OurPlay v5.5.9版本的 MD5 值为:d4e139798f4c2243a1145c8af5e21046
以下内容为反编译后的 p.java 源代码,内容仅作参考
package com.excelliance.kxqp.gs.dialog;
import android.R;
import android.app.Activity;
import android.content.Context;
import android.graphics.Color;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.view.WindowManager;
import android.widget.CompoundButton;
import android.widget.RadioButton;
import android.widget.TextView;
import androidx.annotation.NonNull;
import com.excelliance.kxqp.gs.bean.CityBean;
import com.excelliance.kxqp.gs.dialog.ae;
import com.excelliance.kxqp.gs.dialog.e;
import com.excelliance.kxqp.gs.discover.model.ResponseData;
import com.excelliance.kxqp.gs.ui.share.core.config.SocializeMedia;
import com.excelliance.kxqp.gs.ui.share.core.helper.ShareHelper;
import com.excelliance.kxqp.gs.ui.share.core.param.ShareImage;
import com.excelliance.kxqp.gs.ui.share.core.param.WebPageShareParam;
import com.excelliance.kxqp.gs.util.az;
import com.excelliance.kxqp.gs.util.bf;
import com.excelliance.kxqp.gs.util.by;
import com.excelliance.kxqp.gs.util.bz;
import com.excelliance.kxqp.gs.util.cg;
import com.excelliance.kxqp.gs.view.zmbanner.c;
import com.excelliance.kxqp.platforms.ExcellianceAppInfo;
import com.excelliance.kxqp.sdk.StatisticsBase;
import com.excelliance.kxqp.sdk.StatisticsGS;
import com.excelliance.kxqp.ui.detail.WarpLinearLayout;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
public class p extends com.excelliance.kxqp.gs.base.f implements ae.a {
private e.b f4560a;
private WarpLinearLayout f4561b;
private WarpLinearLayout e;
private TextView f;
private TextView g;
private ExcellianceAppInfo h;
private Context i;
private String j;
@Override
public String b() {
return "dialog_limit_proxy_for_launch";
}
public p(@NonNull Context context) {
super(context);
this.i = context;
}
@Override
protected void a(View view) {
this.f4561b = (WarpLinearLayout) com.excelliance.kxqp.ui.util.b.a("ll_common_node", view);
this.e = (WarpLinearLayout) com.excelliance.kxqp.ui.util.b.a("ll_fast_node", view);
this.f = (TextView) com.excelliance.kxqp.ui.util.b.a("tv_fast", view);
this.g = (TextView) com.excelliance.kxqp.ui.util.b.a("tv_common", view);
View a2 = com.excelliance.kxqp.ui.util.b.a("ll_share", view);
a2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view2) {
if (p.this.i instanceof Activity) {
bz.a().a(p.this.i, 65000, 1, "点击分享");
Activity activity = (Activity) p.this.i;
ae aeVar = new ae(activity);
aeVar.a(p.this);
aeVar.a(activity.findViewById(R.id.content));
}
p.this.dismiss();
}
});
this.j = g();
if (this.j == null) {
a2.setVisibility(8);
} else {
a2.setVisibility(0);
}
}
public void a(ExcellianceAppInfo excellianceAppInfo) {
this.h = excellianceAppInfo;
}
public void a(List<CityBean> list) {
if (com.excelliance.kxqp.gs.util.s.a(list)) {
return;
}
ArrayList arrayList = new ArrayList();
ArrayList arrayList2 = new ArrayList();
for (CityBean cityBean : list) {
if (cityBean.getType() == 1) {
arrayList.add(cityBean);
} else if (cityBean.getType() == 0) {
arrayList2.add(cityBean);
}
}
if (this.f4561b != null) {
if (com.excelliance.kxqp.gs.util.s.a(arrayList2)) {
this.f4561b.setVisibility(8);
this.g.setVisibility(8);
} else {
Iterator<CityBean> it = arrayList2.iterator();
while (it.hasNext()) {
this.f4561b.addView(a(arrayList2, it.next()));
}
}
}
if (this.e != null) {
if (com.excelliance.kxqp.gs.util.s.a(arrayList)) {
this.e.setVisibility(8);
this.f.setVisibility(8);
} else {
Iterator<CityBean> it2 = arrayList.iterator();
while (it2.hasNext()) {
this.e.addView(a(arrayList, it2.next()));
}
}
}
}
private RadioButton a(final List<CityBean> list, CityBean cityBean) {
RadioButton radioButton = (RadioButton) View.inflate(this.i, com.excelliance.kxqp.gs.util.w.c(this.i, "node_child"), null);
radioButton.setText(cityBean.getName());
radioButton.setTag(cityBean);
radioButton.setTextColor(Color.parseColor("#333333"));
radioButton.setTextSize(2, 16.0f);
radioButton.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton compoundButton, boolean z) {
if (p.this.f4560a == null || !z) {
return;
}
Object tag = compoundButton.getTag();
if (tag != null && (tag instanceof CityBean)) {
p.this.f4560a.a(p.this.f4561b.getChildCount(), (CityBean) tag, list.size());
}
p.this.dismiss();
}
});
return radioButton;
}
public void a(e.b bVar) {
this.f4560a = bVar;
}
@Override
protected int b(WindowManager windowManager) {
return com.excelliance.kxqp.gs.util.ad.a(this.i, 300.0f);
}
@Override
public void b(View view, int i) {
if (!bf.e(this.i)) {
cg.a(this.i, com.excelliance.kxqp.gs.util.w.e(this.i, "share_sdk_share_no_info"));
return;
}
switch (i) {
case 1:
StatisticsGS.getInstance().uploadUserAction(this.i, StatisticsBase.UA_MAKE_MONEY_SHARE_WAY, 3, 1);
if (com.excelliance.kxqp.gs.util.as.i(this.i, "com.tencent.mobileqq") || com.excelliance.kxqp.gs.util.as.i(this.i, "com.tencent.tim")) {
a(SocializeMedia.QQ);
return;
} else {
cg.a(this.i, com.excelliance.kxqp.gs.util.w.e(this.i, "share_sdk_not_install_qq"));
return;
}
case 2:
StatisticsGS.getInstance().uploadUserAction(this.i, StatisticsBase.UA_MAKE_MONEY_SHARE_WAY, 4, 1);
if (com.excelliance.kxqp.gs.util.as.i(this.i, "com.tencent.mobileqq") || com.excelliance.kxqp.gs.util.as.i(this.i, "com.tencent.tim")) {
a(SocializeMedia.QZONE);
return;
} else {
cg.a(this.i, com.excelliance.kxqp.gs.util.w.e(this.i, "share_sdk_not_install_qq"));
return;
}
case 3:
StatisticsGS.getInstance().uploadUserAction(this.i, StatisticsBase.UA_MAKE_MONEY_SHARE_WAY, 2, 1);
if (com.excelliance.kxqp.gs.util.as.i(this.i, "com.tencent.mm")) {
a(SocializeMedia.WEIXIN);
return;
} else {
cg.a(this.i, com.excelliance.kxqp.gs.util.w.e(this.i, "share_sdk_not_install_wechat"));
return;
}
case 4:
StatisticsGS.getInstance().uploadUserAction(this.i, StatisticsBase.UA_MAKE_MONEY_SHARE_WAY, 5, 1);
if (com.excelliance.kxqp.gs.util.as.i(this.i, "com.sina.weibo")) {
a(SocializeMedia.SINA);
return;
} else {
cg.a(this.i, com.excelliance.kxqp.gs.util.w.e(this.i, "share_sdk_not_install_wb"));
return;
}
case 5:
StatisticsGS.getInstance().uploadUserAction(this.i, StatisticsBase.UA_MAKE_MONEY_SHARE_WAY, 1, 1);
if (com.excelliance.kxqp.gs.util.as.i(this.i, "com.tencent.mm")) {
a(SocializeMedia.WEIXIN_MONMENT);
return;
} else {
cg.a(this.i, com.excelliance.kxqp.gs.util.w.e(this.i, "share_sdk_not_install_wechat"));
return;
}
case 6:
StatisticsGS.getInstance().uploadUserAction(this.i, StatisticsBase.UA_MAKE_MONEY_SHARE_WAY, 6, 1);
new y(this.i, this.j).show();
return;
default:
return;
}
}
private void a(SocializeMedia socializeMedia) {
if (this.i instanceof Activity) {
Activity activity = (Activity) this.i;
String e = com.excelliance.kxqp.gs.util.w.e(this.i, "national_day_share_title");
String e2 = com.excelliance.kxqp.gs.util.w.e(this.i, "national_day_share_summary");
ShareHelper instance = ShareHelper.instance(activity);
WebPageShareParam webPageShareParam = new WebPageShareParam(e, e2, this.j);
ShareImage shareImage = new ShareImage();
instance.setCallBack(new ShareHelper.Callback() {
@Override
public void onDismiss(SocializeMedia socializeMedia2) {
}
@Override
public void onShareStart(SocializeMedia socializeMedia2) {
}
@Override
public void onShareComplete(SocializeMedia socializeMedia2, int i, Bundle bundle) {
bz.a().a(p.this.i, 65000, 2, "分享成功");
}
});
shareImage.setNetImageUrl("https://www.ourplay.com.cn/src/img/logo.png");
webPageShareParam.setThumb(shareImage);
instance.shareMediaTo(socializeMedia, webPageShareParam);
}
}
public String g() {
String b2 = by.a(this.i, "global_config").b("sp_key_banner_list_cache", "");
if (TextUtils.isEmpty(b2)) {
return null;
}
ResponseData<List<c.a>> a2 = com.excelliance.kxqp.gs.view.zmbanner.c.a(b2);
az.d("LimitProxyDialog", "banner cache:" + a2);
if (a2 == null || com.excelliance.kxqp.gs.util.s.a(a2.data)) {
return null;
}
for (c.a aVar : a2.data) {
if (aVar.d == c.b.ARTICLE_WITH_SHARE) {
return aVar.c;
}
}
return null;
}
}