Commit 6f21e736 authored by jyx's avatar jyx

代码优化

parent 50554031
......@@ -55,16 +55,16 @@ class AwardActivity : BaseActivity(), AwardView, View.OnClickListener {
vedioAdingManager = VedioAdingManager.getInstance(this)
initExpress()
initListener()
initDataView()
if (!AppConfig.app_black_flag) {
// 首次进行黑名单校验
judgeAppInfo()
} else {
pushAward()
}
initExpress()
initListener()
initDataView()
}
/**
......
......@@ -1230,15 +1230,20 @@ class MyFragment : BaseFragment(),
private fun registerBroad() {
if (mReceiverBroadcastReceiver != null) return
mContext.startService(Intent(context, AppInstallService::class.java))
mReceiverBroadcastReceiver = object : BroadcastReceiver() {
override fun onReceive(context: Context?, intent: Intent?) {
if (intent == null) return
// 非高额任务不监听下载安装
if (TextUtils.equals(carrierType, Constant.CARRIER_HIGH_ACTIVITY)) {
try {
val pkg = intent.getStringExtra("pkg")
mCurrentPkg = pkg
PreferencesService.getInstance(mContext).putString(Constant.HIGH_TASK_PKG_NAME, pkg)
myPresenter.setHighTaskType("3")
} catch (e: Exception) {
e.printStackTrace()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment