|
@@ -92,6 +92,7 @@ class AppAdapter(var context: Context, var data: ArrayList<AppInfo>) :
|
92
|
92
|
return@setOnClickListener
|
93
|
93
|
}
|
94
|
94
|
var destroyFlag=false
|
|
95
|
+ var useFlag=true
|
95
|
96
|
try {
|
96
|
97
|
val appTimeStrategy = StrategyUtils.getAppTimeStrategy(context, appInfo.packageName)
|
97
|
98
|
if (appTimeStrategy){
|
|
@@ -107,6 +108,7 @@ class AppAdapter(var context: Context, var data: ArrayList<AppInfo>) :
|
107
|
108
|
destroyFlag=false
|
108
|
109
|
}
|
109
|
110
|
}else{
|
|
111
|
+ useFlag=false
|
110
|
112
|
Toaster.showLong(context.getString(R.string.apptimestoptips))
|
111
|
113
|
}
|
112
|
114
|
}catch (e:Exception){
|
|
@@ -117,7 +119,10 @@ class AppAdapter(var context: Context, var data: ArrayList<AppInfo>) :
|
117
|
119
|
DownLoadUtils.destroyDownLoad()
|
118
|
120
|
InstallUtils.destroyInstallUtils()
|
119
|
121
|
}else{
|
120
|
|
- Toaster.show(context.getString(R.string.startapptips))
|
|
122
|
+ if (useFlag){
|
|
123
|
+ //提示了不再可用时间则不再提示未安装
|
|
124
|
+ Toaster.show(context.getString(R.string.startapptips))
|
|
125
|
+ }
|
121
|
126
|
}
|
122
|
127
|
}
|
123
|
128
|
} else{
|