添加用戶刷新機制

This commit is contained in:
18401019693 2022-09-07 18:38:30 +08:00
parent 8b784e134e
commit 2cbdac4bd0
3 changed files with 16 additions and 13 deletions

View File

@ -146,7 +146,7 @@ public interface PDLiveApi {
* @param liveuid
* @return
*/
@GET("/api/public/?service=User.slketAttents")
@GET("/api/public/?service=User.setAttents")
Observable<ResponseModel<List<SetAttentsModel>>> setAttents(
@Query("touid") String liveuid
);

View File

@ -441,6 +441,7 @@ public class LiveAudienceActivity extends LiveActivity {
@Override
public void onBackPressed() {
try {
manager.onBackPressed();
if (Micing == 1) {
manager.micIngTypeOne(mLiveBean, mLiveType, mLiveTypeVal);
@ -448,10 +449,12 @@ public class LiveAudienceActivity extends LiveActivity {
manager.micIngTypeTwo(mLiveBean, mLiveType, mLiveTypeVal);
} else {
manager.onRemove();
verticalViewPager.removeAllViews();
finish();
overridePendingTransition(0, 0);
super.onBackPressed();
}
} catch (Exception e) {
e.printStackTrace();
}
}
@ -471,7 +474,7 @@ public class LiveAudienceActivity extends LiveActivity {
@Override
protected void onDestroy() {
super.onDestroy();
overridePendingTransition(0, 0);
Bus.getOff(this);
L.e("LiveAudienceActivity-------onDestroy------->");
}

View File

@ -290,7 +290,7 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
IMLoginManager.get(mContext).setisNewUserOne(false);
//子线程执行退出操作
endPlay();
exitLiveRoom();
if (mLiveAudienceViewHolder != null) {