主播新手任务增加UID和TOKEN 但是未能加载界面
This commit is contained in:
parent
7ae32bbe77
commit
81cf2824a7
@ -1051,7 +1051,7 @@
|
||||
<string name="click_to_view">點擊查看</string>
|
||||
<string name="anchor_task">主播任務</string>
|
||||
<string name="anchor_agreement">我已閱讀並同意</string>
|
||||
<string name="anchor_agreement_hint">請閱讀並同意《PDLIVE主播協議》</string>
|
||||
<string name="anchor_agreement_hint">請閱讀並同意《Pandora主播協議》</string>
|
||||
<string name="anchor_hint">《PDLIVE主播協議》</string>
|
||||
<string name="live_task_new_user_timer">新秀主播時效截止至 </string>
|
||||
<string name="live_data_coin">收穫鑽石</string>
|
||||
|
@ -834,7 +834,9 @@ public class LiveSwAnchorActivity extends LiveActivity implements LiveFunctionCl
|
||||
mLiveRoomViewHolder.setLiveInfo(mLiveUid, mStream, obj.getIntValue("userlist_time") * 1000);
|
||||
mLiveRoomViewHolder.setVotes(obj.getString("votestotal"));
|
||||
mLiveRoomViewHolder.setMedaRankNum(obj.getString("medalRankNum"));
|
||||
mLiveRoomViewHolder.setShowTask(obj.getString("new_task_url"),obj.getIntValue("is_new_live")==1);
|
||||
String url = obj.getString("new_task_url")+"&uid="+mLiveUid+"&token="+CommonAppConfig.getInstance().getToken();
|
||||
Log.i("新手任务url",url);
|
||||
mLiveRoomViewHolder.setShowTask(url,obj.getIntValue("is_new_live")==1);
|
||||
mLiveRoomViewHolder.startFace();
|
||||
UserBean u = CommonAppConfig.getInstance().getUserBean();
|
||||
if (u != null) {
|
||||
|
@ -5592,6 +5592,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
||||
}
|
||||
|
||||
public void setShowTask(String url, boolean isShow) {
|
||||
|
||||
newTaskGroup = findViewById(R.id.newTaskGroup);
|
||||
newTaskBg = findViewById(R.id.newTaskBg);
|
||||
newTaskBg.setOnClickListener(new View.OnClickListener() {
|
||||
|
Loading…
Reference in New Issue
Block a user