|
@@ -838,7 +838,6 @@ class MainActivity : BaseActivity<MainViewModel, ActivityMainBinding>(), Downloa
|
838
|
838
|
|
839
|
839
|
override fun onResume() {
|
840
|
840
|
super.onResume()
|
841
|
|
- LogShow("执行onresume")
|
842
|
841
|
isResumeFlag = true
|
843
|
842
|
Const.startAppStoreFlag = false
|
844
|
843
|
updateNetErrorAppRv()
|
|
@@ -905,7 +904,6 @@ class MainActivity : BaseActivity<MainViewModel, ActivityMainBinding>(), Downloa
|
905
|
904
|
}
|
906
|
905
|
|
907
|
906
|
private fun updateAllStrategy() {
|
908
|
|
- LogShow("请求策略锁定了吧")
|
909
|
907
|
Const.backNum = 0
|
910
|
908
|
userBean?.let {
|
911
|
909
|
Const.USERID = it.userid
|
|
@@ -1705,6 +1703,14 @@ class MainActivity : BaseActivity<MainViewModel, ActivityMainBinding>(), Downloa
|
1705
|
1703
|
//获得预装应用和商店应用,商店应用(隐藏图标的不显示)和预装重叠直接显示,其余预装直接隐藏
|
1706
|
1704
|
var schoolDeviceSetBean: SchoolDeviceSetBean? = null
|
1707
|
1705
|
schoolDeviceSetBean = StrategyUtils.getSchoolDeviceSetBean(this)
|
|
1706
|
+ schoolDeviceSetBean?.let {
|
|
1707
|
+ if (it.calendar==0){
|
|
1708
|
+ //如果不隐藏日历则需要先解除冻结,否则继续冻结,需要优先处理否则之后会存在读取不到日历安装包的情况
|
|
1709
|
+ ManageApplication.setPackageEnabled(Const.ANDROIDCALENDAR,true)
|
|
1710
|
+ }else{
|
|
1711
|
+ ManageApplication.setPackageEnabled(Const.ANDROIDCALENDAR,false)
|
|
1712
|
+ }
|
|
1713
|
+ }
|
1708
|
1714
|
val storeList = arrayListOf<String>()
|
1709
|
1715
|
val storeRemoveList = arrayListOf<String>()
|
1710
|
1716
|
//获得已安装app
|