fix bugs.
This commit is contained in:
@@ -10,6 +10,7 @@ import com.opensource.svgaplayer.utils.log.SVGALogger
|
||||
import com.scwang.smartrefresh.layout.SmartRefreshLayout
|
||||
import com.scwang.smartrefresh.layout.footer.ClassicsFooter
|
||||
import com.scwang.smartrefresh.layout.header.ClassicsHeader
|
||||
import com.xscm.modulemain.activity.main.activity.MainActivity
|
||||
import com.xscm.modulemain.dialog.InviteDialog
|
||||
import com.xscm.modulemain.widget.WheatLayoutSingManager
|
||||
import com.xscm.moduleutil.base.CommonAppContext
|
||||
@@ -67,8 +68,7 @@ open class Application : CommonAppContext() {
|
||||
|
||||
AppUtils.registerAppStatusChangedListener(object : Utils.OnAppStatusChangedListener {
|
||||
override fun onForeground(activity: Activity?) {//应用切换到前台
|
||||
|
||||
if (!CommonAppContext.getInstance().isPlaying) {
|
||||
if (!CommonAppContext.getInstance().isPlaying && activity is MainActivity) {
|
||||
RetrofitClient.getInstance()
|
||||
.index_recommend_room(object : BaseObserver<IndexRecommendRoom>() {
|
||||
override fun onSubscribe(d: Disposable) {
|
||||
@@ -83,7 +83,6 @@ open class Application : CommonAppContext() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:scaleType="fitXY"
|
||||
android:src="@mipmap/icon_mentor_ship_bg"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
||||
Reference in New Issue
Block a user