侧边栏修改

This commit is contained in:
18401019693 2022-11-16 14:30:11 +08:00
parent 02a5ceaacc
commit 897a47bee7
6 changed files with 53 additions and 28 deletions

View File

@ -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();
}
}
}

View File

@ -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())

View File

@ -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())

View File

@ -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());

View File

@ -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())

View File

@ -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");
}
}