添加用戶刷新機制
This commit is contained in:
parent
8b784e134e
commit
2cbdac4bd0
@ -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
|
||||||
);
|
);
|
||||||
|
@ -441,6 +441,7 @@ public class LiveAudienceActivity extends LiveActivity {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onBackPressed() {
|
public void onBackPressed() {
|
||||||
|
try {
|
||||||
manager.onBackPressed();
|
manager.onBackPressed();
|
||||||
if (Micing == 1) {
|
if (Micing == 1) {
|
||||||
manager.micIngTypeOne(mLiveBean, mLiveType, mLiveTypeVal);
|
manager.micIngTypeOne(mLiveBean, mLiveType, mLiveTypeVal);
|
||||||
@ -448,10 +449,12 @@ public class LiveAudienceActivity extends LiveActivity {
|
|||||||
manager.micIngTypeTwo(mLiveBean, mLiveType, mLiveTypeVal);
|
manager.micIngTypeTwo(mLiveBean, mLiveType, mLiveTypeVal);
|
||||||
} else {
|
} else {
|
||||||
manager.onRemove();
|
manager.onRemove();
|
||||||
verticalViewPager.removeAllViews();
|
super.onBackPressed();
|
||||||
finish();
|
|
||||||
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------->");
|
||||||
}
|
}
|
||||||
|
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user