房间飘屏 bug fix
This commit is contained in:
@@ -961,6 +961,9 @@ public class HomePartyFragment extends AbsRoomFragment implements View.OnClickLi
|
||||
*/
|
||||
private void addLuckyBagNotify(ChatRoomMessage chatRoomMessage) {
|
||||
if (messagesLuckyGift == null) messagesLuckyGift = new ArrayList<>();
|
||||
if (gameMainBinding.clNotify.getVisibility() == View.GONE) {
|
||||
gameMainBinding.clNotify.setVisibility(View.VISIBLE);
|
||||
}
|
||||
messagesLuckyGift.add(chatRoomMessage);
|
||||
if (disposableLuckyGift == null || messagesLuckyGift.size() == 1) {
|
||||
isCreateLuckyGift = true;
|
||||
@@ -1002,6 +1005,9 @@ public class HomePartyFragment extends AbsRoomFragment implements View.OnClickLi
|
||||
*/
|
||||
private void addBoxNotify(ChatRoomMessage chatRoomMessage) {
|
||||
if (messages == null) messages = new ArrayList<>();
|
||||
if (gameMainBinding.clNotify.getVisibility() == View.GONE) {
|
||||
gameMainBinding.clNotify.setVisibility(View.VISIBLE);
|
||||
}
|
||||
messages.add(chatRoomMessage);
|
||||
if (boxDisposable == null || messages.size() == 1) {
|
||||
isCreate = true;
|
||||
@@ -1040,6 +1046,9 @@ public class HomePartyFragment extends AbsRoomFragment implements View.OnClickLi
|
||||
*/
|
||||
private void addBoxNotifyBySVGA(ChatRoomMessage chatRoomMessage) {
|
||||
if (messagesBoxSVGA == null) messagesBoxSVGA = new ArrayList<>();
|
||||
if (gameMainBinding.clNotify.getVisibility() == View.GONE) {
|
||||
gameMainBinding.clNotify.setVisibility(View.VISIBLE);
|
||||
}
|
||||
messagesBoxSVGA.add(chatRoomMessage);
|
||||
if (boxSVGADisposable == null || messagesBoxSVGA.size() == 1) {
|
||||
isBoxSVGACreate = true;
|
||||
|
Reference in New Issue
Block a user