添加用戶刷新機制

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 * @param liveuid
* @return * @return
*/ */
@GET("/api/public/?service=User.slketAttents") @GET("/api/public/?service=User.setAttents")
Observable<ResponseModel<List<SetAttentsModel>>> setAttents( Observable<ResponseModel<List<SetAttentsModel>>> setAttents(
@Query("touid") String liveuid @Query("touid") String liveuid
); );

View File

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

View File

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