Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
dad3f85864
@ -10,9 +10,9 @@ ext {
|
|||||||
manifestPlaceholders = [
|
manifestPlaceholders = [
|
||||||
//正式
|
//正式
|
||||||
|
|
||||||
serverHost : "https://napi.yaoulive.com",
|
// serverHost : "https://napi.yaoulive.com",
|
||||||
//測試
|
//測試
|
||||||
// serverHost : "https://ceshi.yaoulive.com",
|
serverHost : "https://ceshi.yaoulive.com",
|
||||||
|
|
||||||
//腾讯地图
|
//腾讯地图
|
||||||
txMapAppKey : "EOZBZ-ASLCU-4XPV3-BDCHZ-4E3Q7-H4BWB",
|
txMapAppKey : "EOZBZ-ASLCU-4XPV3-BDCHZ-4E3Q7-H4BWB",
|
||||||
@ -27,6 +27,6 @@ ext {
|
|||||||
// true表示谷歌支付 false
|
// true表示谷歌支付 false
|
||||||
isGooglePlay : false,
|
isGooglePlay : false,
|
||||||
//是否上报异常日志
|
//是否上报异常日志
|
||||||
isUploadLog : true
|
isUploadLog : false
|
||||||
]
|
]
|
||||||
}
|
}
|
@ -145,10 +145,10 @@ public class UserMoreInfoAdapter extends RefreshAdapter<UserBean> {
|
|||||||
title.setVisibility(View.GONE);
|
title.setVisibility(View.GONE);
|
||||||
title1.setVisibility(View.GONE);
|
title1.setVisibility(View.GONE);
|
||||||
Log.i("tag", "" + num);
|
Log.i("tag", "" + num);
|
||||||
if (position == 0 && type.equals("1")) {
|
// if (position == 0 && type.equals("1")) {
|
||||||
title1.setText(R.string.noble);
|
// title1.setText(R.string.noble);
|
||||||
title1.setVisibility(View.VISIBLE);
|
// title1.setVisibility(View.VISIBLE);
|
||||||
}
|
// }
|
||||||
if (position == num && type.equals("1")) {
|
if (position == num && type.equals("1")) {
|
||||||
title.setText(R.string.live_audience);
|
title.setText(R.string.live_audience);
|
||||||
title.setVisibility(View.VISIBLE);
|
title.setVisibility(View.VISIBLE);
|
||||||
|
@ -3,6 +3,7 @@ package com.yunbao.live.dialog;
|
|||||||
import android.app.ActionBar;
|
import android.app.ActionBar;
|
||||||
import android.graphics.Color;
|
import android.graphics.Color;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
import android.text.TextUtils;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.view.Gravity;
|
import android.view.Gravity;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
@ -112,7 +113,8 @@ public class LiveUserMoreDialogFragment extends AbsDialogFragment implements Vie
|
|||||||
stream = bundle.getString(Constants.STREAM);
|
stream = bundle.getString(Constants.STREAM);
|
||||||
isOnly = bundle.getBoolean("only", false);
|
isOnly = bundle.getBoolean("only", false);
|
||||||
String outRankHideString = bundle.getString("outRankHide");
|
String outRankHideString = bundle.getString("outRankHide");
|
||||||
outRankHide = GsonUtils.fromJson(outRankHideString, new TypeToken<List<String>>(){}.getType());
|
outRankHide = GsonUtils.fromJson(outRankHideString, new TypeToken<List<String>>() {
|
||||||
|
}.getType());
|
||||||
if (userMoreInfoAdapter != null) {
|
if (userMoreInfoAdapter != null) {
|
||||||
|
|
||||||
userMoreInfoAdapter.setHide(outRankHide);
|
userMoreInfoAdapter.setHide(outRankHide);
|
||||||
@ -264,9 +266,12 @@ public class LiveUserMoreDialogFragment extends AbsDialogFragment implements Vie
|
|||||||
}
|
}
|
||||||
|
|
||||||
private List<LiveUserGiftBean> processUserData(JSONObject json) {
|
private List<LiveUserGiftBean> processUserData(JSONObject json) {
|
||||||
List<LiveUserGiftBean> data = JSON.parseArray(json.getString("userlist"), LiveUserGiftBean.class);
|
List<LiveUserGiftBean> userGiftBeans = JSON.parseArray(json.getString("userlist"), LiveUserGiftBean.class);
|
||||||
if (data == null) {
|
List<LiveUserGiftBean> data = new ArrayList<>();
|
||||||
return new ArrayList<>();
|
for (LiveUserGiftBean model : userGiftBeans) {
|
||||||
|
if (TextUtils.equals(model.getNoble_id(), "0")) {
|
||||||
|
data.add(model);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Log.i("tag222", "ssss");
|
Log.i("tag222", "ssss");
|
||||||
if (data.size() > 0 && pg == 1) {
|
if (data.size() > 0 && pg == 1) {
|
||||||
|
@ -1901,7 +1901,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
} else if (i == R.id.btn_prize_pool_level) {
|
} else if (i == R.id.btn_prize_pool_level) {
|
||||||
((LiveActivity) mContext).openPrizePoolWindow();
|
((LiveActivity) mContext).openPrizePoolWindow();
|
||||||
} else if (i == R.id.user_more) {
|
} else if (i == R.id.user_more) {
|
||||||
((LiveActivity) mContext).openUserMoreListWindow(4, false);
|
((LiveActivity) mContext).openUserMoreListWindow(1, false);
|
||||||
} else if (i == R.id.hot_btn) {
|
} else if (i == R.id.hot_btn) {
|
||||||
((LiveActivity) mContext).openUserMoreListWindow(1, false);
|
((LiveActivity) mContext).openUserMoreListWindow(1, false);
|
||||||
|
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 27 KiB |
@ -10,6 +10,7 @@ import android.text.Spannable;
|
|||||||
import android.text.SpannableStringBuilder;
|
import android.text.SpannableStringBuilder;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.text.style.ForegroundColorSpan;
|
import android.text.style.ForegroundColorSpan;
|
||||||
|
import android.view.View;
|
||||||
import android.widget.ImageView;
|
import android.widget.ImageView;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
@ -25,6 +26,7 @@ import com.yunbao.common.Constants;
|
|||||||
import com.yunbao.common.activity.AbsActivity;
|
import com.yunbao.common.activity.AbsActivity;
|
||||||
import com.yunbao.common.activity.WebViewActivity;
|
import com.yunbao.common.activity.WebViewActivity;
|
||||||
import com.yunbao.common.bean.ConfigBean;
|
import com.yunbao.common.bean.ConfigBean;
|
||||||
|
import com.yunbao.common.bean.IMLoginModel;
|
||||||
import com.yunbao.common.glide.ImgLoader;
|
import com.yunbao.common.glide.ImgLoader;
|
||||||
import com.yunbao.common.http.CommonHttpConsts;
|
import com.yunbao.common.http.CommonHttpConsts;
|
||||||
import com.yunbao.common.http.CommonHttpUtil;
|
import com.yunbao.common.http.CommonHttpUtil;
|
||||||
@ -64,7 +66,7 @@ public class SettingActivity extends AbsActivity implements OnItemClickListener<
|
|||||||
private SettingAdapter mAdapter;
|
private SettingAdapter mAdapter;
|
||||||
private ImageView studioGiftEffects, studioRideEffects, upSlideSettings, appWindow, systemWindow;
|
private ImageView studioGiftEffects, studioRideEffects, upSlideSettings, appWindow, systemWindow;
|
||||||
private boolean giftEffect, mountEffect, slide, isFloat;
|
private boolean giftEffect, mountEffect, slide, isFloat;
|
||||||
private TextView systemHit;
|
private TextView systemHit, reward;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected int getLayoutId() {
|
protected int getLayoutId() {
|
||||||
@ -79,10 +81,13 @@ public class SettingActivity extends AbsActivity implements OnItemClickListener<
|
|||||||
studioRideEffects = findViewById(R.id.studio_ride_effects);
|
studioRideEffects = findViewById(R.id.studio_ride_effects);
|
||||||
upSlideSettings = findViewById(R.id.up_slide_settings);
|
upSlideSettings = findViewById(R.id.up_slide_settings);
|
||||||
appWindow = findViewById(R.id.app_window);
|
appWindow = findViewById(R.id.app_window);
|
||||||
|
reward = findViewById(R.id.reward);
|
||||||
systemHit = findViewById(R.id.system_hit);
|
systemHit = findViewById(R.id.system_hit);
|
||||||
systemWindow = findViewById(R.id.system_window);
|
systemWindow = findViewById(R.id.system_window);
|
||||||
mRecyclerView.setHasFixedSize(true);
|
mRecyclerView.setHasFixedSize(true);
|
||||||
mRecyclerView.setLayoutManager(new LinearLayoutManager(mContext, LinearLayoutManager.VERTICAL, false));
|
mRecyclerView.setLayoutManager(new LinearLayoutManager(mContext, LinearLayoutManager.VERTICAL, false));
|
||||||
|
IMLoginModel model = IMLoginManager.get(mContext).getUserInfo();
|
||||||
|
reward.setVisibility(model.getIsBind() == 1 ? View.GONE : View.VISIBLE);
|
||||||
giftEffect = IMLoginManager.get(mContext).isGiftEffect();
|
giftEffect = IMLoginManager.get(mContext).isGiftEffect();
|
||||||
mountEffect = IMLoginManager.get(mContext).isMountEffect();
|
mountEffect = IMLoginManager.get(mContext).isMountEffect();
|
||||||
MainHttpUtil.getSettingList(new HttpCallback() {
|
MainHttpUtil.getSettingList(new HttpCallback() {
|
||||||
|
@ -40,6 +40,7 @@
|
|||||||
android:textSize="16sp" />
|
android:textSize="16sp" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
android:id="@+id/reward"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="13dp"
|
android:layout_marginStart="13dp"
|
||||||
|
Loading…
Reference in New Issue
Block a user