修改热度加成问题

This commit is contained in:
18401019693 2023-01-07 14:53:12 +08:00
parent 0b7a3cc50e
commit 112bec58df
5 changed files with 24 additions and 7 deletions

View File

@ -25,7 +25,7 @@ ext {
baiduAppSecretKey: "nEVSgmuGpU0pjPr6VleEGGAl0hzGW52S",
// true表示谷歌支付 false
isGooglePlay : false,
isGooglePlay : true,
//
isUploadLog : false
]

View File

@ -679,6 +679,9 @@ public class LiveAudienceActivity extends LiveActivity {
public void setPkStatus(boolean isPk) {
this.isPk = isPk;
if (manager != null) {
manager.setPkStatus(isPk);
}
}
@Subscribe(threadMode = ThreadMode.MAIN)

View File

@ -463,6 +463,10 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
}
}
public void hotAddVisibility(boolean visibility) {
ft_hot_add.setVisibility(visibility ? View.GONE : View.VISIBLE);
}
public void endDRGif() {
if (dr_pk_end_gif.getVisibility() == View.GONE) {
dr_pk_end_gif.setVisibility(View.VISIBLE);

View File

@ -1278,6 +1278,16 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
}
}
/**
* pk状态
*
* @param isPk
*/
public void setPkStatus(boolean isPk) {
if (mLiveRoomViewHolder != null)
mLiveRoomViewHolder.hotAddVisibility(isPk);
}
@Override
public void onLinkMicPkClose(int i) {

View File

@ -709,8 +709,8 @@
android:layout_height="27dp"
android:layout_below="@id/live_time"
android:layout_marginLeft="12dp"
android:layout_marginTop="12dp"
android:visibility="gone">
android:layout_marginTop="-12dp"
android:visibility="visible">
<ImageView
android:id="@+id/img_hot_gif"