Commit 880276c6 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 001458fb
......@@ -62,22 +62,6 @@ public class MintsApplication extends MultiDexApplication {
// 判断应用是否在前台
ForegroundOrBackground.init(this);
// ConstantsOpenSdk.isDebug = true;
// XMediaPlayerConstants.isDebug = true;
// XmPlayerConfig.getInstance(this).setDefualtNotificationNickNameAndInfo("开心麻花", "开心开心,无敌开心");
//
// if (BaseUtil.isMainProcess(this)) {
// // 喜马拉雅
// CommonRequest instanse = CommonRequest.getInstanse();
// String mAppSecret = "db3cb9e3ec5943f4987e78ddc5aec728";
// String mAppKey = "ff71a11162f20808f9f349452dd9e141";
// instanse.setAppkey(mAppKey);
// instanse.setAppsecret(mAppSecret);
// instanse.setPackid("com.mints.goodmoney");
// instanse.setUseHttps(false);
// instanse.init(this, mAppSecret);
// }
// 三方配置
thirdConfig();
}
......@@ -165,7 +149,7 @@ public class MintsApplication extends MultiDexApplication {
}
private void initXmly() {
XmPlayerConfig.getInstance(this).setDefualtNotificationNickNameAndInfo("好赚钱", "好赚钱");
XmPlayerConfig.getInstance(this).setDefualtNotificationNickNameAndInfo(Constant.MINTS_APP_NAME, Constant.MINTS_APP_NAME);
if (BaseUtil.isMainProcess(this)) {
ConstantsOpenSdk.isDebug = BuildConfig.DEBUG;
CommonRequest mXimalaya = CommonRequest.getInstanse();
......
......@@ -16,6 +16,7 @@ public class DrawcashBean implements Serializable {
private List<CashOutMoneyArrBean> cashOutMoneyArr;
private VedioRules vedioRules;
private boolean isJDNewUser;
private boolean openJDCash = true;
private String JDUrl = null;
public String getJDUrl() {
......@@ -30,6 +31,10 @@ public class DrawcashBean implements Serializable {
return isJDNewUser;
}
public boolean isOpenJDCash() {
return openJDCash;
}
public void setIsJDNewUser(Boolean isJDNewUser) {
this.isJDNewUser = isJDNewUser;
}
......
......@@ -205,6 +205,12 @@ class DrawcashActivity : BaseActivity(),
// rl_drawcash.visibility = View.GONE
// }
if (data.isOpenJDCash) {
rl_drawcash.visibility = View.VISIBLE
} else {
rl_drawcash.visibility = View.GONE
}
// 提现更改权重
initAdWeight(data.vedioRules)
......
......@@ -105,15 +105,15 @@
android:id="@+id/rl_drawcash"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="20dp"
android:layout_marginEnd="20dp"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:layout_marginBottom="20dp"
android:orientation="horizontal">
<RadioButton
android:id="@+id/tvDrawWechat"
android:layout_width="0dp"
android:layout_height="40dp"
android:layout_height="50dp"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:layout_weight="1"
......@@ -130,7 +130,7 @@
<RadioButton
android:id="@+id/tvDrawJd"
android:layout_width="0dp"
android:layout_height="40dp"
android:layout_height="50dp"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:layout_weight="1"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment