Commit acba7201 authored by jyx's avatar jyx

代码优化

parent fcb85a47
......@@ -370,6 +370,7 @@ public class VideoAdingManager {
if (mReceiverBroadcastReceiver != null) {
activity.stopService(new Intent(activity, AppInstallService.class));
activity.unregisterReceiver(mReceiverBroadcastReceiver);
mReceiverBroadcastReceiver = null;
}
activity = null;
......
......@@ -90,7 +90,7 @@ class TaskCpdFragment : BaseFragment(), TaskView,
}
private fun loadCPDData() {
LogUtil.d(TAG,"syd loadCPDData")
LogUtil.d(TAG, "syd loadCPDData")
taskPresenter.getCpdDetail(outNetIp)
}
......@@ -165,7 +165,7 @@ class TaskCpdFragment : BaseFragment(), TaskView,
}
override fun getCpdModelSuc(dataBean: CpdModelBean.DataBean) {
LogUtil.d(TAG,"syd getCpdModelSuc")
LogUtil.d(TAG, "syd getCpdModelSuc")
for (material in dataBean.materials) {
val tzTaskBean = TzTaskBean(material.icons, material.title, material.description, false, mCoin, 0, material.app_apk_name)
......@@ -182,7 +182,7 @@ class TaskCpdFragment : BaseFragment(), TaskView,
}
override fun getCpdModelFail() {
LogUtil.d(TAG,"syd getCpdModelFail")
LogUtil.d(TAG, "syd getCpdModelFail")
if (cpdLoadCountTime++ >= cpdMax - 1) {
......@@ -294,7 +294,7 @@ class TaskCpdFragment : BaseFragment(), TaskView,
}
override fun onLoadSuccess(dataList: MutableList<CoralAD>?) {
LogUtil.d(TAG,"shanhu onLoadSuccess times")
LogUtil.d(TAG, "shanhu onLoadSuccess times")
dataList?.let {
for (coralAD in it) {
val tzTaskBean = TzTaskBean(coralAD.icon, coralAD.title, coralAD.description, true, mCoin, 0, null)
......@@ -305,7 +305,7 @@ class TaskCpdFragment : BaseFragment(), TaskView,
// 珊瑚循环完成后 调用圣于地广告
if (shLoadCountTime++ >= shMax - 1) {
LogUtil.d(TAG,"shanhu onLoadSuccess")
LogUtil.d(TAG, "shanhu onLoadSuccess")
if (cpdMax == 0) {
notifyDataAndShowAd()
return
......@@ -353,9 +353,11 @@ class TaskCpdFragment : BaseFragment(), TaskView,
mCoralDownload?.destroy()
mDownloadProcess = null
DownloadApkManager.destroy()
if (mReceiverBroadcastReceiver != null) {
mContext.stopService(Intent(context, AppInstallService::class.java))
mContext.unregisterReceiver(mReceiverBroadcastReceiver)
mReceiverBroadcastReceiver = null
}
taskPresenter.detachView()
......
......@@ -12,8 +12,8 @@
<com.mints.goodmoney.ui.widgets.CircleImageView
android:id="@+id/item_title_avatar"
android:layout_width="70dp"
android:layout_height="70dp"
android:layout_width="60dp"
android:layout_height="60dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toTopOf="parent" />
......
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