|
@@ -34,6 +34,7 @@ import com.sheep.gamegroup.model.entity.TaskEty;
|
|
|
import com.sheep.gamegroup.util.DownloadUtil;
|
|
import com.sheep.gamegroup.util.DownloadUtil;
|
|
|
import com.sheep.gamegroup.util.LogUtil;
|
|
import com.sheep.gamegroup.util.LogUtil;
|
|
|
import com.sheep.gamegroup.util.StringUtils;
|
|
import com.sheep.gamegroup.util.StringUtils;
|
|
|
|
|
+import com.sheep.gamegroup.util.TestUtil;
|
|
|
import com.sheep.jiuyan.samllsheep.SheepApp;
|
|
import com.sheep.jiuyan.samllsheep.SheepApp;
|
|
|
import com.sheep.jiuyan.samllsheep.utils.G;
|
|
import com.sheep.jiuyan.samllsheep.utils.G;
|
|
|
|
|
|
|
@@ -222,13 +223,11 @@ public class DownloadService extends Service {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public static void setDownLoadLongClick(View view, final String link, final String taskName) {
|
|
public static void setDownLoadLongClick(View view, final String link, final String taskName) {
|
|
|
- view.setOnLongClickListener(new View.OnLongClickListener() {
|
|
|
|
|
- @Override
|
|
|
|
|
- public boolean onLongClick(View view) {
|
|
|
|
|
|
|
+ if(TestUtil.isTest())
|
|
|
|
|
+ view.setOnLongClickListener(view1 -> {
|
|
|
showDownloadType(link, taskName);
|
|
showDownloadType(link, taskName);
|
|
|
return true;
|
|
return true;
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private static void showDownloadType(final String link, final String taskName) {
|
|
private static void showDownloadType(final String link, final String taskName) {
|