修复一些bug
This commit is contained in:
parent
3328827ab6
commit
1d38c635dd
4
app/proguard-rules.pro
vendored
4
app/proguard-rules.pro
vendored
@ -45,3 +45,7 @@
|
|||||||
-keep class * extends com.google.gson.TypeAdapter {
|
-keep class * extends com.google.gson.TypeAdapter {
|
||||||
*;
|
*;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-keep class org.chromium.** { *; }
|
||||||
|
-keep class androidx.media3.datasource.cronet.** { *; }
|
||||||
|
-keep class androidx.media3.exoplayer.scheduler.PlatformScheduler$PlatformSchedulerService { *; }
|
||||||
@ -124,6 +124,10 @@
|
|||||||
</intent-filter>
|
</intent-filter>
|
||||||
</service>
|
</service>
|
||||||
|
|
||||||
|
<service
|
||||||
|
android:name="androidx.media3.exoplayer.scheduler.PlatformScheduler$PlatformSchedulerService"
|
||||||
|
android:exported="true"
|
||||||
|
android:permission="android.permission.BIND_JOB_SERVICE" />
|
||||||
</application>
|
</application>
|
||||||
|
|
||||||
</manifest>
|
</manifest>
|
||||||
@ -92,10 +92,17 @@ class MoSingerDetailsActivity : MoBaseActivity() {
|
|||||||
showLoadingUi()
|
showLoadingUi()
|
||||||
Innertube.moSingerListPage(browseId)
|
Innertube.moSingerListPage(browseId)
|
||||||
?.onSuccess {
|
?.onSuccess {
|
||||||
|
if (isFinishing || isDestroyed) {
|
||||||
|
return
|
||||||
|
}
|
||||||
showDataUi()
|
showDataUi()
|
||||||
|
try {
|
||||||
Glide.with(this)
|
Glide.with(this)
|
||||||
.load(it.thumbnail)
|
.load(it.thumbnail)
|
||||||
.into(binding.singerImg)
|
.into(binding.singerImg)
|
||||||
|
} catch (e: Exception) {
|
||||||
|
e.printStackTrace()
|
||||||
|
}
|
||||||
binding.singerName.text = it.title
|
binding.singerName.text = it.title
|
||||||
if (it.description.isNullOrEmpty()) {
|
if (it.description.isNullOrEmpty()) {
|
||||||
binding.singerDesc.visibility = View.GONE
|
binding.singerDesc.visibility = View.GONE
|
||||||
@ -144,4 +151,9 @@ class MoSingerDetailsActivity : MoBaseActivity() {
|
|||||||
binding.loadingLayout.visibility = View.GONE
|
binding.loadingLayout.visibility = View.GONE
|
||||||
binding.noContentLayout.visibility = View.VISIBLE
|
binding.noContentLayout.visibility = View.VISIBLE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun onDestroy() {
|
||||||
|
super.onDestroy()
|
||||||
|
Glide.with(this).clear(binding.singerImg)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@ -194,6 +194,7 @@ class SearchFragment : MoBaseFragment<FragmentSearchBinding>(), TextWatcher,
|
|||||||
}
|
}
|
||||||
|
|
||||||
is Request.SearchData -> {
|
is Request.SearchData -> {
|
||||||
|
if (isAdded) {
|
||||||
val input = it.input
|
val input = it.input
|
||||||
if (input.isNotEmpty()) {
|
if (input.isNotEmpty()) {
|
||||||
AnalysisUtil.logEvent(AnalysisUtil.SEARCH_TRIGGER)
|
AnalysisUtil.logEvent(AnalysisUtil.SEARCH_TRIGGER)
|
||||||
@ -237,7 +238,6 @@ class SearchFragment : MoBaseFragment<FragmentSearchBinding>(), TextWatcher,
|
|||||||
}?.onFailure {
|
}?.onFailure {
|
||||||
showNoContentLayout()
|
showNoContentLayout()
|
||||||
}
|
}
|
||||||
|
|
||||||
LolAdWrapper.shared.loadAdIfNotCached(
|
LolAdWrapper.shared.loadAdIfNotCached(
|
||||||
requireActivity(), AdPlacement.INST_SEARCH
|
requireActivity(), AdPlacement.INST_SEARCH
|
||||||
)
|
)
|
||||||
@ -245,6 +245,7 @@ class SearchFragment : MoBaseFragment<FragmentSearchBinding>(), TextWatcher,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
events.onReceive {
|
events.onReceive {
|
||||||
when (it) {
|
when (it) {
|
||||||
Event.FragmentOnResume -> {
|
Event.FragmentOnResume -> {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user