|
|
@@ -22,7 +22,6 @@ import com.arialyy.aria.core.Aria;
|
|
|
import com.arialyy.aria.core.download.DownloadTarget;
|
|
|
import com.arialyy.aria.core.inf.IEntity;
|
|
|
import com.kfzs.duanduan.datashare.provider.download.DownLoadInfo;
|
|
|
-import com.kfzs.duanduan.fragment.FgtSmallSheep;
|
|
|
import com.sheep.gamegroup.absBase.BaseActivity;
|
|
|
import com.sheep.gamegroup.alipay.PayResult;
|
|
|
import com.sheep.gamegroup.model.entity.BaseMessage;
|
|
|
@@ -32,11 +31,9 @@ import com.sheep.gamegroup.model.entity.TaskChild;
|
|
|
import com.sheep.gamegroup.model.entity.TaskEty;
|
|
|
import com.sheep.gamegroup.model.entity.TaskListen;
|
|
|
import com.sheep.gamegroup.model.entity.UserEntity;
|
|
|
-import com.sheep.gamegroup.model.entity.WebviewEntity;
|
|
|
import com.sheep.gamegroup.model.entity.WithdrawalEty;
|
|
|
import com.sheep.gamegroup.model.util.SheepSubscriber;
|
|
|
import com.sheep.gamegroup.presenter.TryMakeMoneyPresenter;
|
|
|
-import com.sheep.gamegroup.view.activity.RechargeAct;
|
|
|
import com.sheep.jiuyan.samllsheep.R;
|
|
|
import com.sheep.jiuyan.samllsheep.SheepApp;
|
|
|
import com.sheep.jiuyan.samllsheep.utils.ClassFileHelper;
|
|
|
@@ -45,7 +42,6 @@ import com.sheep.jiuyan.samllsheep.utils.SpUtils;
|
|
|
import com.umeng.socialize.ShareAction;
|
|
|
import com.umeng.socialize.UMAuthListener;
|
|
|
import com.umeng.socialize.UMShareAPI;
|
|
|
-import com.umeng.socialize.UMShareListener;
|
|
|
import com.umeng.socialize.bean.SHARE_MEDIA;
|
|
|
import com.umeng.socialize.media.UMImage;
|
|
|
import com.umeng.socialize.media.UMWeb;
|
|
|
@@ -467,22 +463,18 @@ public class CommonUtil {
|
|
|
SheepApp.getInstance().setTaskEty(taskEty);
|
|
|
*/
|
|
|
public void setTAskEnty(TaskEty tAskEnty){
|
|
|
- try {
|
|
|
- if(tAskEnty.getInspect_type() == 3){
|
|
|
-
|
|
|
- MyDbManager.getInstance()
|
|
|
- .saveOrUpdate(new TaskListen(tAskEnty.getId(), tAskEnty.getPackage_names(), tAskEnty.getRelease_task_id()));
|
|
|
- }else {
|
|
|
- MyDbManager.getInstance()
|
|
|
- .removeTask();
|
|
|
- SheepApp.getInstance().setTaskEty(null);
|
|
|
+ if(tAskEnty != null) {
|
|
|
+ try {
|
|
|
+ if (tAskEnty.getInspect_type() == 3) {
|
|
|
+ MyDbManager.getInstance().saveOrUpdate(new TaskListen(tAskEnty.getId(), tAskEnty.getPackage_names(), tAskEnty.getRelease_task_id()));
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ } catch (Exception ignore) {
|
|
|
}
|
|
|
- }catch (Exception e){
|
|
|
- MyDbManager.getInstance()
|
|
|
- .removeTask();
|
|
|
- SheepApp.getInstance().setTaskEty(null);
|
|
|
}
|
|
|
-// SheepApp.getInstance().setTaskEty(tAskEnty);
|
|
|
+ MyDbManager.getInstance().removeTask();
|
|
|
+ SheepApp.getInstance().setTaskEty(null);
|
|
|
+
|
|
|
}
|
|
|
|
|
|
/**
|