浏览记录

This commit is contained in:
叶子维
2025-05-28 11:37:48 +08:00
parent c944e529ba
commit 2bbf2dce3c
15 changed files with 221 additions and 73 deletions

View File

@ -13,9 +13,7 @@ import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModelProvider
import com.therouter.TheRouter
import com.blankj.utilcode.util.LanguageUtils
import com.gh.gamecenter.common.BuildConfig
import com.gh.gamecenter.common.base.activity.BaseActivity
import com.gh.gamecenter.common.base.fragment.ToolbarFragment
import com.gh.gamecenter.common.constant.Constants
@ -39,6 +37,7 @@ import com.gh.gamecenter.setting.databinding.FragmentSettingBinding
import com.gh.gamecenter.setting.view.security.SecurityActivity
import com.gh.gid.GidHelper
import com.lightgame.utils.Utils
import com.therouter.TheRouter
import io.reactivex.Observable
import io.reactivex.ObservableEmitter
import io.reactivex.Observer
@ -351,8 +350,6 @@ class SettingsFragment : ToolbarFragment() {
requireContext(),
getString(R.string.clearing_cache)
)
val historyHelper = TheRouter.get(IHistoryHelperProvider::class.java)
historyHelper?.emptyDatabase()
// 清除新游开测存储的游戏类型
SPUtils.remove(Constants.SP_GAME_SERVER_TEST_V2_CATEGORY_SET)
clearCache()