bugfix
This commit is contained in:
@@ -60,7 +60,7 @@ public class HomeRoomFragmentAdapter extends BaseMultiItemQuickAdapter<HomeTabMa
|
|||||||
livingIconView.setColor(Color.WHITE);
|
livingIconView.setColor(Color.WHITE);
|
||||||
livingIconView.start();
|
livingIconView.start();
|
||||||
helper.setText(R.id.tv_online_number,item.getOnlineNum()+"")
|
helper.setText(R.id.tv_online_number,item.getOnlineNum()+"")
|
||||||
.setText(R.id.tv_title, item.getRoomTitle());
|
.setText(R.id.tv_title, item.getTitle());
|
||||||
// helper.getView(R.id.lock_bg).setVisibility(!TextUtils.isEmpty(homeRoom.getRoomPwd()) ? View.VISIBLE : View.GONE);
|
// helper.getView(R.id.lock_bg).setVisibility(!TextUtils.isEmpty(homeRoom.getRoomPwd()) ? View.VISIBLE : View.GONE);
|
||||||
|
|
||||||
helper.setGone(R.id.iv_tab_label, mIsHome);
|
helper.setGone(R.id.iv_tab_label, mIsHome);
|
||||||
|
@@ -17,7 +17,7 @@ public class HomeTabMapInfo implements MultiItemEntity, Serializable {
|
|||||||
|
|
||||||
private int onlineNum;
|
private int onlineNum;
|
||||||
private int roomUid;
|
private int roomUid;
|
||||||
private String roomTitle;
|
private String title;
|
||||||
private String avatar;
|
private String avatar;
|
||||||
private int seq;
|
private int seq;
|
||||||
private boolean isTop;
|
private boolean isTop;
|
||||||
@@ -59,15 +59,15 @@ public class HomeTabMapInfo implements MultiItemEntity, Serializable {
|
|||||||
this.roomUid = roomUid;
|
this.roomUid = roomUid;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getRoomTitle() {
|
public String getTitle() {
|
||||||
return roomTitle;
|
return title;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setRoomTitle(String roomTitle) {
|
public void setTitle(String title) {
|
||||||
this.roomTitle = roomTitle;
|
this.title = title;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getAvatar() {
|
public String getAvatar() {
|
||||||
return avatar;
|
return avatar;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -42,15 +42,10 @@ public class AttentionListAdapter extends BaseQuickAdapter<AttentionInfo, BaseVi
|
|||||||
attentionInfo.getUserDesc()
|
attentionInfo.getUserDesc()
|
||||||
: baseViewHolder.itemView.getContext().getResources().getString(R.string.msg_no_user_desc))
|
: baseViewHolder.itemView.getContext().getResources().getString(R.string.msg_no_user_desc))
|
||||||
.setGone(R.id.tv_find_him, attentionInfo.getUserInRoom() != null && type == AbstractSelectFriendAction.TYPE_NORMAL)
|
.setGone(R.id.tv_find_him, attentionInfo.getUserInRoom() != null && type == AbstractSelectFriendAction.TYPE_NORMAL)
|
||||||
.setGone(R.id.tv_send, isSend)
|
|
||||||
.setOnClickListener(R.id.tv_find_him, v -> {
|
.setOnClickListener(R.id.tv_find_him, v -> {
|
||||||
if (rylListener != null)
|
if (rylListener != null)
|
||||||
rylListener.findHimListeners(attentionInfo);
|
rylListener.findHimListeners(attentionInfo);
|
||||||
})
|
})
|
||||||
.setOnClickListener(R.id.tv_send, v -> {
|
|
||||||
if (rylListener != null)
|
|
||||||
rylListener.sendListener(attentionInfo);
|
|
||||||
})
|
|
||||||
.setOnClickListener(R.id.rly, v -> {
|
.setOnClickListener(R.id.rly, v -> {
|
||||||
if (rylListener != null)
|
if (rylListener != null)
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
@@ -541,21 +541,6 @@ public class UserInfoActivity extends BaseBindingActivity<ActivityUserInfoBindin
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case R.id.iv_where:
|
case R.id.iv_where:
|
||||||
// getDialogManager().showProgressDialog(this, "请稍后...");
|
|
||||||
// AvRoomModel.get()
|
|
||||||
// .getUserRoom(Long.parseLong(mRoomUid))
|
|
||||||
// .compose(bindToLifecycle())
|
|
||||||
// .subscribe((roomResult, throwable) -> {
|
|
||||||
// if (throwable != null) {
|
|
||||||
// onGetUserRoomFail(throwable.getMessage());
|
|
||||||
// } else if (roomResult != null && roomResult.isSuccess()) {
|
|
||||||
// onGetUserRoom(roomResult.getData());
|
|
||||||
// } else if (roomResult != null && !roomResult.isSuccess()) {
|
|
||||||
// onGetUserRoomFail(roomResult.getError());
|
|
||||||
// } else {
|
|
||||||
// onGetUserRoomFail("未知错误");
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
AVRoomActivity.start(this, Long.parseLong(mRoomUid));
|
AVRoomActivity.start(this, Long.parseLong(mRoomUid));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@@ -133,17 +133,7 @@
|
|||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
tools:visibility="visible" />
|
tools:visibility="visible" />
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/tv_send"
|
|
||||||
android:layout_width="55dp"
|
|
||||||
android:layout_height="25dp"
|
|
||||||
android:background="@drawable/bg_car_item_buy"
|
|
||||||
android:gravity="center"
|
|
||||||
android:text="@string/send_gift"
|
|
||||||
android:textColor="@color/color_FFFFFF"
|
|
||||||
android:textSize="13sp"
|
|
||||||
android:visibility="gone"
|
|
||||||
tools:visibility="visible" />
|
|
||||||
|
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
|
||||||
|
@@ -100,7 +100,7 @@
|
|||||||
android:id="@+id/app_bar"
|
android:id="@+id/app_bar"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="@null"
|
android:background="@color/transparent"
|
||||||
android:theme="@style/AppTheme.AppBarOverlay"
|
android:theme="@style/AppTheme.AppBarOverlay"
|
||||||
app:expanded="false"
|
app:expanded="false"
|
||||||
tools:expanded="true"
|
tools:expanded="true"
|
||||||
|
@@ -27,7 +27,7 @@
|
|||||||
android:background="@drawable/bg_common_confirm_normal"
|
android:background="@drawable/bg_common_confirm_normal"
|
||||||
android:paddingLeft="@dimen/dp_5"
|
android:paddingLeft="@dimen/dp_5"
|
||||||
android:paddingRight="@dimen/dp_5"
|
android:paddingRight="@dimen/dp_5"
|
||||||
android:text="嗨聊中"/>
|
android:text="直播中"/>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/tv_name_attention_in_room"
|
android:id="@+id/tv_name_attention_in_room"
|
||||||
|
@@ -55,7 +55,7 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="2dp"
|
android:layout_marginTop="2dp"
|
||||||
android:text="嗨聊中"
|
android:text="直播中"
|
||||||
android:textColor="@color/color_999999"
|
android:textColor="@color/color_999999"
|
||||||
android:textSize="11sp" />
|
android:textSize="11sp" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
Reference in New Issue
Block a user