fix邀请粉丝

This commit is contained in:
oujunhui
2020-08-19 11:40:11 +08:00
parent cc0cf8727e
commit c54deeba33
2 changed files with 8 additions and 3 deletions

View File

@@ -74,7 +74,7 @@ public class RoomInviteFansActivity extends BaseActivity {
}
RoomInviteFansModel.INSTANCE.getRoomInviteFans(AvRoomDataManager.get().mCurrentRoomInfo.getUid())
.doOnError(throwable ->
LogUtil.print(throwable.getMessage())
getInviteError(throwable.getMessage())
)
.subscribe(info -> {
tvInviteFansCount.setText(Html.fromHtml("确认邀请后会给收藏该房间的共"+"<font color=#7154EE font-size=12dp>"+info.getFansNum()+"</font>"+"位用户发送提醒"));
@@ -138,6 +138,11 @@ public class RoomInviteFansActivity extends BaseActivity {
});
}
private void getInviteError(String msg){
SingleToastUtil.showToast(msg);
finish();
}
@Override
protected boolean needSteepStateBar() {
return false;

View File

@@ -43,7 +43,7 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="每日发送次数不可超过次"
android:text="每日发送次数不可超5过次"
android:drawableStart="@drawable/shap_round_room_invite_des"
android:drawablePadding="8dp"
android:layout_marginStart="30dp"
@@ -82,7 +82,7 @@
android:id="@+id/tv_invite_fans_times"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="今天剩余5次"
android:text=""
android:textSize="13dp"
android:textColor="@color/color_666666"
android:layout_gravity="center_horizontal"