Commit f3169ce2 authored by jyx's avatar jyx

处理下载试玩状态

parent 592fa953
...@@ -3,7 +3,6 @@ package com.mints.goodmoney.ad.video ...@@ -3,7 +3,6 @@ package com.mints.goodmoney.ad.video
import android.app.Activity import android.app.Activity
import android.text.TextUtils import android.text.TextUtils
import androidx.annotation.Nullable import androidx.annotation.Nullable
import com.mints.goodmoney.BuildConfig
import com.mints.goodmoney.common.AppConfig import com.mints.goodmoney.common.AppConfig
import com.mints.goodmoney.common.Constant import com.mints.goodmoney.common.Constant
import com.mints.goodmoney.manager.TrackManager import com.mints.goodmoney.manager.TrackManager
......
...@@ -388,6 +388,7 @@ class AwardActivity : BaseActivity(), AwardView, View.OnClickListener { ...@@ -388,6 +388,7 @@ class AwardActivity : BaseActivity(), AwardView, View.OnClickListener {
if (mReceiverBroadcastReceiver != null) { if (mReceiverBroadcastReceiver != null) {
mContext.stopService(Intent(context, AppInstallService::class.java)) mContext.stopService(Intent(context, AppInstallService::class.java))
mContext.unregisterReceiver(mReceiverBroadcastReceiver) mContext.unregisterReceiver(mReceiverBroadcastReceiver)
mReceiverBroadcastReceiver = null
} }
awardPresenter.detachView() awardPresenter.detachView()
......
...@@ -160,7 +160,7 @@ class TaskCpdHistoryFragment : LazyLoadBaseFragment(), TaskCpdHistoryView, ...@@ -160,7 +160,7 @@ class TaskCpdHistoryFragment : LazyLoadBaseFragment(), TaskCpdHistoryView,
private fun refreshDemoTask() { private fun refreshDemoTask() {
mTaskAdapter?.let { mTaskAdapter?.let {
val position = it.getPosition() val position = it.getPosition()
if (mFakeTaskList.size == 1 || mFakeTaskList[position].state == 3) return if (mFakeTaskList[position].state == 3) return
val currentPkgName = mFakeTaskList[position].currentPkgName val currentPkgName = mFakeTaskList[position].currentPkgName
if (currentPkgName != null) { if (currentPkgName != null) {
......
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