1:添加在离线展示
2:修改在进入房间后再最小化,从后台进入出现在首页的问题
This commit is contained in:
@@ -10,8 +10,7 @@
|
||||
|
||||
<activity
|
||||
android:name=".activity.MainActivity"
|
||||
android:launchMode="singleTask"
|
||||
android:exported="true"
|
||||
|
||||
/>
|
||||
</application>
|
||||
|
||||
|
||||
@@ -371,7 +371,7 @@ public class MainActivity extends BaseMvpActivity<HomePresenter, ActivityMainBin
|
||||
// 3. 应用是从后台恢复的(通过检查 CommonAppContext 状态)
|
||||
return CommonAppContext.getInstance().isPlaying
|
||||
&& CommonAppContext.getInstance().isShow
|
||||
&& CommonAppContext.getInstance().wasInBackground();
|
||||
;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -379,6 +379,7 @@ public class MainActivity extends BaseMvpActivity<HomePresenter, ActivityMainBin
|
||||
super.onResume();
|
||||
|
||||
LogUtils.e("isShow", CommonAppContext.getInstance().isShow ,CommonAppContext.getInstance().isPlaying,isTaskRoot());
|
||||
LogUtils.e("isShow2", CommonAppContext.getInstance().isShow ,CommonAppContext.getInstance().isPlaying,CommonAppContext.getInstance().wasInBackground());
|
||||
// if (isTaskRoot() &&CommonAppContext.getInstance().isPlaying && CommonAppContext.getInstance().isShow) {
|
||||
// ARouter.getInstance().build(ARouteConstants.ROOM_DETAILS).withString("form", "首页").withString("roomId", CommonAppContext.getInstance().playId).navigation();
|
||||
// return;
|
||||
|
||||
Reference in New Issue
Block a user