修复:
新人引导送礼与快捷消息布局冲突问题
This commit is contained in:
parent
b755b4f3a1
commit
40a8d604b0
@ -857,7 +857,6 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
outline.setRoundRect(0, 0, view.getWidth(), view.getHeight(), 10);
|
outline.setRoundRect(0, 0, view.getWidth(), view.getHeight(), 10);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
loadWishlistData();
|
|
||||||
//打招呼消息
|
//打招呼消息
|
||||||
fastMsgRecyclerView = (RecyclerView) findViewById(R.id.room_fast_msg);
|
fastMsgRecyclerView = (RecyclerView) findViewById(R.id.room_fast_msg);
|
||||||
fastMsgRecyclerView.setLayoutManager(new LinearLayoutManager(mContext, LinearLayoutManager.HORIZONTAL, false));
|
fastMsgRecyclerView.setLayoutManager(new LinearLayoutManager(mContext, LinearLayoutManager.HORIZONTAL, false));
|
||||||
|
@ -273,6 +273,7 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onRemove() {
|
public void onRemove() {
|
||||||
|
end();
|
||||||
if (mLiveAudienceViewHolder != null) {
|
if (mLiveAudienceViewHolder != null) {
|
||||||
mLiveAudienceViewHolder.removeFromParent();
|
mLiveAudienceViewHolder.removeFromParent();
|
||||||
mLiveAudienceViewHolder.countDownTimerTrickery = null;
|
mLiveAudienceViewHolder.countDownTimerTrickery = null;
|
||||||
@ -1286,20 +1287,14 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
|||||||
mLivePlayViewHolder.release();
|
mLivePlayViewHolder.release();
|
||||||
}
|
}
|
||||||
mLivePlayViewHolder = null;
|
mLivePlayViewHolder = null;
|
||||||
onRemove();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void end() {
|
public void end() {
|
||||||
if (mLiveRoomViewHolder != null)
|
if (mLiveRoomViewHolder != null)
|
||||||
mLiveRoomViewHolder.clearList();
|
mLiveRoomViewHolder.clearList();
|
||||||
boolean canBackPressed = true;
|
|
||||||
if (mContext instanceof LiveAudienceActivity) {
|
|
||||||
canBackPressed = ((LiveAudienceActivity) mContext).canBackPressed();
|
|
||||||
}
|
|
||||||
IMLoginManager.get(mContext).setisNewUserOne(false);
|
IMLoginManager.get(mContext).setisNewUserOne(false);
|
||||||
if (!mEnd && !canBackPressed) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (countDownTimer != null) {
|
if (countDownTimer != null) {
|
||||||
countDownTimer.cancel();
|
countDownTimer.cancel();
|
||||||
countDownTimer = null;
|
countDownTimer = null;
|
||||||
@ -1309,13 +1304,7 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
|||||||
if (LiveRoomViewHolder.isAttention == 0) {
|
if (LiveRoomViewHolder.isAttention == 0) {
|
||||||
if (isStayRoomfive) {
|
if (isStayRoomfive) {
|
||||||
LiveRoomViewHolder.showFollowDialog(LiveRoomViewHolder.mNameText, LiveRoomViewHolder.mAvatarUrl, mContext);
|
LiveRoomViewHolder.showFollowDialog(LiveRoomViewHolder.mNameText, LiveRoomViewHolder.mAvatarUrl, mContext);
|
||||||
} else {
|
|
||||||
backIndex = 1;
|
|
||||||
((LiveAudienceActivity) mContext).onBackPressed();
|
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
backIndex = 1;
|
|
||||||
((LiveAudienceActivity) mContext).onBackPressed();
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
exitLiveRoom();
|
exitLiveRoom();
|
||||||
@ -1367,7 +1356,6 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
endPlay();
|
endPlay();
|
||||||
mContext.finish();
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
@ -227,11 +227,12 @@
|
|||||||
android:layout_height="30dp"
|
android:layout_height="30dp"
|
||||||
android:layout_marginTop="4dp"
|
android:layout_marginTop="4dp"
|
||||||
android:src="@mipmap/live_users_more" />
|
android:src="@mipmap/live_users_more" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/btn_close"
|
android:id="@+id/btn_close"
|
||||||
android:layout_marginStart="6dp"
|
|
||||||
android:layout_width="30dp"
|
android:layout_width="30dp"
|
||||||
android:layout_height="30dp"
|
android:layout_height="30dp"
|
||||||
|
android:layout_marginStart="6dp"
|
||||||
android:layout_marginTop="4dp"
|
android:layout_marginTop="4dp"
|
||||||
android:src="@mipmap/icon_live_close_3" />
|
android:src="@mipmap/icon_live_close_3" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
@ -239,7 +240,6 @@
|
|||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/hour_rank_layout"
|
android:id="@+id/hour_rank_layout"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
@ -713,7 +713,7 @@
|
|||||||
android:id="@+id/chat_recyclerView"
|
android:id="@+id/chat_recyclerView"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_marginTop="430dp"
|
android:layout_marginTop="370dp"
|
||||||
android:overScrollMode="never"
|
android:overScrollMode="never"
|
||||||
android:scrollbars="none" />
|
android:scrollbars="none" />
|
||||||
|
|
||||||
@ -846,6 +846,7 @@
|
|||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="300dp"
|
android:layout_height="300dp"
|
||||||
android:layout_below="@id/lin">
|
android:layout_below="@id/lin">
|
||||||
|
Loading…
Reference in New Issue
Block a user