Compare commits
9 Commits
v5.38.3-11
...
hotfix/v5.
| Author | SHA1 | Date | |
|---|---|---|---|
| 68151ed6f9 | |||
| e6d2361008 | |||
| 570b777c8e | |||
| 0e557b2246 | |||
| f155440814 | |||
| 62ba9fc7bf | |||
| 4637aa8808 | |||
| 81998e3aad | |||
| 82a8aa03ba |
@ -7,7 +7,7 @@ import com.gh.gamecenter.common.utils.isVGameDownloadInDualDownloadMode
|
||||
import com.gh.gamecenter.core.utils.ToastUtils
|
||||
import com.gh.gamecenter.feature.entity.GameEntity
|
||||
import com.gh.gamecenter.feature.entity.GameInstall
|
||||
import com.gh.gamecenter.packagehelper.PackageRepository
|
||||
import com.gh.gamecenter.manager.PackagesManager
|
||||
import com.gh.vspace.VHelper
|
||||
|
||||
object PackageLauncher {
|
||||
@ -91,7 +91,7 @@ object PackageLauncher {
|
||||
val gameInstall = if (gameEntity != null) {
|
||||
GameInstall.transformGameInstall(gameEntity, packageName)
|
||||
} else {
|
||||
PackageRepository.gameInstalled.find { it.packageName == packageName }
|
||||
PackagesManager.getInstalledList().find { it.packageName == packageName }
|
||||
}
|
||||
|
||||
if (gameInstall != null) {
|
||||
|
||||
@ -25,10 +25,10 @@ import com.gh.gamecenter.common.utils.toPx
|
||||
import com.gh.gamecenter.core.iinterface.IScrollable
|
||||
import com.gh.gamecenter.core.utils.MtaHelper
|
||||
import com.gh.gamecenter.core.utils.SpanBuilder
|
||||
import com.gh.gamecenter.feature.entity.GameEntity
|
||||
import com.gh.gamecenter.entity.RatingComment
|
||||
import com.gh.gamecenter.eventbus.EBStar
|
||||
import com.gh.gamecenter.eventbus.EBTypeChange
|
||||
import com.gh.gamecenter.feature.entity.GameEntity
|
||||
import com.gh.gamecenter.gamedetail.GameDetailFragment
|
||||
import com.halo.assistant.HaloApp
|
||||
import org.greenrobot.eventbus.EventBus
|
||||
@ -60,7 +60,7 @@ class RatingFragment : LazyListFragment<RatingComment, RatingViewModel>(), IScro
|
||||
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
|
||||
super.onActivityResult(requestCode, resultCode, data)
|
||||
if (requestCode == RATING_EDIT_REQUEST && resultCode == Activity.RESULT_OK) {
|
||||
mListViewModel.initData()
|
||||
mListViewModel?.initData()
|
||||
} else if (
|
||||
(requestCode == RATING_REPLAY_REQUEST || requestCode == RATING_PATCH_REQUEST)
|
||||
&& resultCode == Activity.RESULT_OK
|
||||
|
||||
@ -981,6 +981,8 @@ class SearchToolbarTabWrapperFragment : BaseTabWrapperFragment(), ISearchToolbar
|
||||
}
|
||||
|
||||
override fun setPullDownPush(pullDownPush: PullDownPush?, pullDownPushHandler: PullDownPushHandler?) {
|
||||
if (!isAdded) return
|
||||
|
||||
if (autoVideoView == null) {
|
||||
binding.autoVideoViewStub.setOnInflateListener { _, inflated ->
|
||||
autoVideoView = LayoutAutoVideoViewBinding.bind(inflated).root
|
||||
|
||||
@ -17,6 +17,7 @@ import com.gh.gamecenter.R
|
||||
import com.gh.gamecenter.common.utils.ImageUtils
|
||||
import com.gh.gamecenter.common.utils.dip2px
|
||||
import com.gh.gamecenter.common.utils.layoutInflater
|
||||
import com.gh.gamecenter.common.utils.safelyGetInRelease
|
||||
import com.gh.gamecenter.common.view.PageControllerAdapter
|
||||
import com.gh.gamecenter.common.view.PageTransformerAdapter
|
||||
import com.gh.gamecenter.common.view.ScrollEventListener
|
||||
@ -151,7 +152,8 @@ class VGameInstalledLaunchDialog : DialogFragment() {
|
||||
|
||||
launch.setOnClickListener { view ->
|
||||
val currentItem = pageControllerAdapter.currentItem
|
||||
val installedGame = installAdapter.currentList[currentItem]
|
||||
val installedGame =
|
||||
installAdapter.currentList.safelyGetInRelease(currentItem) ?: return@setOnClickListener
|
||||
val vDownloadEntity =
|
||||
VHelper.getVDownloadEntitySnapshot(installedGame.gameId, installedGame.packageName)
|
||||
?: return@setOnClickListener
|
||||
|
||||
@ -5,30 +5,34 @@ import android.content.Context
|
||||
import android.content.res.Configuration
|
||||
import com.gh.gamecenter.core.iinterface.IApplication
|
||||
import com.google.auto.service.AutoService
|
||||
import com.lg.vspace.common.CommonApp
|
||||
import com.lg.vspace.App64
|
||||
|
||||
@AutoService(IApplication::class)
|
||||
class HaloApp : IApplication {
|
||||
|
||||
private val commonApp = CommonApp()
|
||||
private val app = App64()
|
||||
|
||||
override fun attachBaseContext(base: Context) {
|
||||
commonApp.attachBaseContext(base)
|
||||
app.attachBaseContext(base)
|
||||
}
|
||||
|
||||
override fun onCreate(application: Application) {
|
||||
commonApp.onCreate(application)
|
||||
app.onCreate(application)
|
||||
}
|
||||
|
||||
override fun onLowMemory() {
|
||||
app.onLowMemory()
|
||||
}
|
||||
|
||||
override fun onTerminate() {
|
||||
app.onTerminate()
|
||||
}
|
||||
|
||||
override fun onTrimMemory(level: Int) {
|
||||
app.onTrimMemory(level)
|
||||
}
|
||||
|
||||
override fun onConfigurationChanged(newConfig: Configuration) {
|
||||
app.onConfigurationChanged(newConfig)
|
||||
}
|
||||
}
|
||||
2
vasdk
2
vasdk
Submodule vasdk updated: ddcec3a232...9cc123df25
Reference in New Issue
Block a user