Commit e32815b0 authored by jyx's avatar jyx

APP判定时间逻辑修改

parent f8367f0c
...@@ -108,7 +108,7 @@ public class AppConfig { ...@@ -108,7 +108,7 @@ public class AppConfig {
/** /**
* 显示cpd任务下载 * 显示cpd任务下载
*/ */
public static boolean useAppCpdModelShow = true; public static boolean useAppCpdModelShow = false;
/** /**
* 微转金币 * 微转金币
......
...@@ -192,7 +192,7 @@ class TaskCpdHistoryFragment : LazyLoadBaseFragment(), TaskCpdHistoryView, ...@@ -192,7 +192,7 @@ class TaskCpdHistoryFragment : LazyLoadBaseFragment(), TaskCpdHistoryView,
readyGo(AwardActivity::class.java, bundle) readyGo(AwardActivity::class.java, bundle)
} else { } else {
// 试玩时间不足5秒 // 试玩时间不足5秒
mFakeTaskList[position].state = 1 mFakeTaskList[position].state = 4
it.notifyItemChanged(it.getPosition()) it.notifyItemChanged(it.getPosition())
} }
} }
......
...@@ -139,7 +139,7 @@ object AppUtil { ...@@ -139,7 +139,7 @@ object AppUtil {
// l = (list[i] as UsageStats).totalTimeInForeground // l = (list[i] as UsageStats).totalTimeInForeground
// 如果当前上次使用时间 小于 当前时间-5分钟,判断合规 // 如果当前上次使用时间 小于 当前时间-5分钟,判断合规
if (paramString == (list[i] as UsageStats).packageName && (l - 5 * 60 * 1000L) < (list[i] as UsageStats).lastTimeUsed) { if (paramString == (list[i] as UsageStats).packageName) {
if (BuildConfig.DEBUG) { if (BuildConfig.DEBUG) {
ToastUtil.showLong(paramContext, ToastUtil.showLong(paramContext,
"当前APP名称:" + getAppName(paramString, paramContext) "当前APP名称:" + getAppName(paramString, paramContext)
......
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