侧边栏修改
This commit is contained in:
parent
02a5ceaacc
commit
897a47bee7
@ -197,6 +197,10 @@ public class CustomDrawerPopupView extends DrawerPopupView {
|
||||
|
||||
@Subscribe(threadMode = ThreadMode.MAIN)
|
||||
public void OnCustomDrawerPopupEvent(CustomDrawerPopupEvent event) {
|
||||
//是否关闭弹窗
|
||||
if (event.isDisMiss()) {
|
||||
dismiss();
|
||||
}
|
||||
if (callBack != null) {
|
||||
if (!TextUtils.isEmpty(event.getRightsInterests())) {
|
||||
callBack.informationTransfer(event);
|
||||
@ -224,9 +228,6 @@ public class CustomDrawerPopupView extends DrawerPopupView {
|
||||
if (event.isRefresh()) {
|
||||
initData();
|
||||
}
|
||||
//是否关闭弹窗
|
||||
if (event.isDisMiss()) {
|
||||
dismiss();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
@ -43,13 +43,21 @@ public class DrawerRecommendChildViewHolder extends RecyclerView.ViewHolder {
|
||||
} else {
|
||||
IMLoginModel userInfo = IMLoginManager.get(itemView.getContext()).getUserInfo();
|
||||
StringBuffer htmlUrl = new StringBuffer();
|
||||
htmlUrl.append(CommonAppConfig.HOST)
|
||||
.append("/")
|
||||
.append(model.getSrc())
|
||||
.append("&uid=")
|
||||
.append(userInfo.getId())
|
||||
.append("&token=")
|
||||
.append(userInfo.getToken());
|
||||
if (model.getSrc().contains("?")) {
|
||||
htmlUrl.append(model.getSrc())
|
||||
.append("&uid=")
|
||||
.append(userInfo.getId())
|
||||
.append("&token=")
|
||||
.append(userInfo.getToken());
|
||||
} else {
|
||||
htmlUrl.append(CommonAppConfig.HOST)
|
||||
.append("/")
|
||||
.append(model.getSrc())
|
||||
.append("?uid=")
|
||||
.append(userInfo.getId())
|
||||
.append("&token=")
|
||||
.append(userInfo.getToken());
|
||||
}
|
||||
Bus.get().post(new CustomDrawerPopupEvent()
|
||||
.setDisMiss(true)
|
||||
.setHtmlUrl(htmlUrl.toString())
|
||||
|
@ -51,13 +51,21 @@ public class DrawerTaskViewHolder extends RecyclerView.ViewHolder {
|
||||
} else {
|
||||
IMLoginModel userInfo = IMLoginManager.get(itemView.getContext()).getUserInfo();
|
||||
StringBuffer htmlUrl = new StringBuffer();
|
||||
htmlUrl.append(CommonAppConfig.HOST)
|
||||
.append("/")
|
||||
.append(model.getSrc())
|
||||
.append("&uid=")
|
||||
.append(userInfo.getId())
|
||||
.append("&token=")
|
||||
.append(userInfo.getToken());
|
||||
if (model.getSrc().contains("?")) {
|
||||
htmlUrl.append(model.getSrc())
|
||||
.append("&uid=")
|
||||
.append(userInfo.getId())
|
||||
.append("&token=")
|
||||
.append(userInfo.getToken());
|
||||
} else {
|
||||
htmlUrl.append(CommonAppConfig.HOST)
|
||||
.append("/")
|
||||
.append(model.getSrc())
|
||||
.append("?uid=")
|
||||
.append(userInfo.getId())
|
||||
.append("&token=")
|
||||
.append(userInfo.getToken());
|
||||
}
|
||||
Bus.get().post(new CustomDrawerPopupEvent()
|
||||
.setDisMiss(true)
|
||||
.setHtmlUrl(htmlUrl.toString())
|
||||
|
@ -47,7 +47,7 @@ public class FunGamesChildViewHolder extends RecyclerView.ViewHolder {
|
||||
.setDisMiss(true).setRightsInterests(model.getTitle()));
|
||||
} else {
|
||||
int activityID = TextUtils.isEmpty(model.getActivityId()) ? 0 : Integer.parseInt(model.getActivityId());
|
||||
if (activityID == 0) {
|
||||
if (activityID != 0) {
|
||||
Bus.get().post(new CustomDrawerPopupEvent()
|
||||
.setDisMiss(true).setActivityId(activityID));
|
||||
} else {
|
||||
@ -63,7 +63,7 @@ public class FunGamesChildViewHolder extends RecyclerView.ViewHolder {
|
||||
htmlUrl.append(CommonAppConfig.HOST)
|
||||
.append("/")
|
||||
.append(model.getSrc())
|
||||
.append("&uid=")
|
||||
.append("?uid=")
|
||||
.append(userInfo.getId())
|
||||
.append("&token=")
|
||||
.append(userInfo.getToken());
|
||||
|
@ -61,13 +61,21 @@ public class FunGamesViewHolder extends RecyclerView.ViewHolder {
|
||||
} else {
|
||||
IMLoginModel userInfo = IMLoginManager.get(itemView.getContext()).getUserInfo();
|
||||
StringBuffer htmlUrl = new StringBuffer();
|
||||
htmlUrl.append(CommonAppConfig.HOST)
|
||||
.append("/")
|
||||
.append(model.getSrc())
|
||||
.append("&uid=")
|
||||
.append(userInfo.getId())
|
||||
.append("&token=")
|
||||
.append(userInfo.getToken());
|
||||
if (model.getSrc().contains("?")) {
|
||||
htmlUrl.append(model.getSrc())
|
||||
.append("&uid=")
|
||||
.append(userInfo.getId())
|
||||
.append("&token=")
|
||||
.append(userInfo.getToken());
|
||||
} else {
|
||||
htmlUrl.append(CommonAppConfig.HOST)
|
||||
.append("/")
|
||||
.append(model.getSrc())
|
||||
.append("?uid=")
|
||||
.append(userInfo.getId())
|
||||
.append("&token=")
|
||||
.append(userInfo.getToken());
|
||||
}
|
||||
Bus.get().post(new CustomDrawerPopupEvent()
|
||||
.setDisMiss(true)
|
||||
.setHtmlUrl(htmlUrl.toString())
|
||||
|
@ -764,7 +764,7 @@ public class LiveAudienceActivity extends LiveActivity {
|
||||
bundle.putString("url", htmlUrl);
|
||||
LiveHDDialogFragment fragment = new LiveHDDialogFragment();
|
||||
fragment.setArguments(bundle);
|
||||
fragment.show(((LiveRyAnchorActivity) mContext).getSupportFragmentManager(), "LiveHDDialogFragment");
|
||||
fragment.show(getSupportFragmentManager(), "LiveHDDialogFragment");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user