|
|
@@ -6,7 +6,6 @@ import android.content.DialogInterface;
|
|
|
import android.os.Bundle;
|
|
|
import android.os.Handler;
|
|
|
import android.os.Message;
|
|
|
-import android.support.v4.view.ViewPager;
|
|
|
import android.support.v4.widget.SwipeRefreshLayout;
|
|
|
import android.support.v7.app.AlertDialog;
|
|
|
import android.support.v7.widget.LinearLayoutManager;
|
|
|
@@ -47,7 +46,6 @@ import com.sheep.gamegroup.model.entity.BulletinEnty;
|
|
|
import com.sheep.gamegroup.model.entity.HomeListEntity;
|
|
|
import com.sheep.gamegroup.model.entity.MoreDataEntity;
|
|
|
import com.sheep.gamegroup.model.entity.NewbieTask;
|
|
|
-import com.sheep.gamegroup.model.entity.NewbieTaskRecord;
|
|
|
import com.sheep.gamegroup.model.entity.RecyleObj;
|
|
|
import com.sheep.gamegroup.model.entity.RecyleType;
|
|
|
import com.sheep.gamegroup.model.entity.RequestParameEty;
|
|
|
@@ -76,6 +74,7 @@ import com.sheep.gamegroup.view.activity.NotificationsUtils;
|
|
|
import com.sheep.gamegroup.view.adapter.AdpHomeListGrideview;
|
|
|
import com.sheep.gamegroup.view.adapter.AdpHomeListListview;
|
|
|
import com.sheep.gamegroup.view.adapter.TryMakeMoneyAdp;
|
|
|
+import com.sheep.gamegroup.view.customview.SheepViewPager;
|
|
|
import com.sheep.gamegroup.view.dialog.DialogNewbieTaskList;
|
|
|
import com.sheep.jiuyan.samllsheep.BuildConfig;
|
|
|
import com.sheep.jiuyan.samllsheep.R;
|
|
|
@@ -139,7 +138,7 @@ public class FgtSmallSheep extends BaseCompatFragment implements SmallSheepContr
|
|
|
@BindView(R.id.card_layout)
|
|
|
LinearLayout card_layout;
|
|
|
@BindView(R.id.viewpager_banner)
|
|
|
- ViewPager viewpager_banner;
|
|
|
+ SheepViewPager viewpager_banner;
|
|
|
@BindView(R.id.group_banner)
|
|
|
RadioGroup group_banner;
|
|
|
@BindView(R.id.scrollView)
|
|
|
@@ -365,7 +364,8 @@ public class FgtSmallSheep extends BaseCompatFragment implements SmallSheepContr
|
|
|
1,
|
|
|
0,
|
|
|
0,
|
|
|
- -1));
|
|
|
+ -1,
|
|
|
+ 0));
|
|
|
|
|
|
tryMakeMoneyPresenter.releaseTask(parameEty);
|
|
|
}
|
|
|
@@ -456,8 +456,6 @@ public class FgtSmallSheep extends BaseCompatFragment implements SmallSheepContr
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- private NewbieTaskRecord newbie_task_record;
|
|
|
-
|
|
|
@Override
|
|
|
public void updateData2View(Object o) {
|
|
|
if (o == null) {
|
|
|
@@ -567,12 +565,17 @@ public class FgtSmallSheep extends BaseCompatFragment implements SmallSheepContr
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
- tryMakeMoneyPresenter.returnTask(null);
|
|
|
+ //请求正在运行中的任务
|
|
|
+ CommonUtil.getInstance()
|
|
|
+ .getRunTask(tryMakeMoneyPresenter,
|
|
|
+ 0);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public void failReleaseTask2View(Object o) {
|
|
|
- tryMakeMoneyPresenter.returnTask(null);
|
|
|
+ CommonUtil.getInstance()
|
|
|
+ .getRunTask(tryMakeMoneyPresenter,
|
|
|
+ 0);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
@@ -844,7 +847,7 @@ public class FgtSmallSheep extends BaseCompatFragment implements SmallSheepContr
|
|
|
SlideshowEty clickedGameObj = slideshowEtyLists.get(position);
|
|
|
|
|
|
UMConfigUtils.onEvent(UMConfigUtils.Event.BANNER_CLICK_HORIZONTAL);
|
|
|
- switch (clickedGameObj.getType()) {// 0,类型 1跳转试玩赚钱、2单个任务详情、3信用卡办理、4 H5页面
|
|
|
+ switch (clickedGameObj.getType()) {// 0,类型 1跳转试玩赚钱、2单个任务详情、3信用卡办理、4 H5页面、5 微信二维码任务
|
|
|
case 1:
|
|
|
Jump2View.getInstance()
|
|
|
.goTryplayView(activity, null);
|
|
|
@@ -873,6 +876,21 @@ public class FgtSmallSheep extends BaseCompatFragment implements SmallSheepContr
|
|
|
}
|
|
|
|
|
|
break;
|
|
|
+ case 5:
|
|
|
+ if(!TextUtils.isEmpty(clickedGameObj.getObjects())){
|
|
|
+
|
|
|
+ Jump2View.getInstance()
|
|
|
+ .goWeb(
|
|
|
+ activity,
|
|
|
+ clickedGameObj.getObjects(),
|
|
|
+ "微信二维码辅助好友注册任务");
|
|
|
+ }
|
|
|
+
|
|
|
+ break;
|
|
|
+ case 6://连续任务
|
|
|
+ Jump2View.getInstance()
|
|
|
+ .goTryplayView(activity, 1);
|
|
|
+ break;
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
@@ -909,7 +927,7 @@ public class FgtSmallSheep extends BaseCompatFragment implements SmallSheepContr
|
|
|
* 1)只提示一次,如果用户取消,以后都不在提示
|
|
|
*/
|
|
|
private void showPDialog(){
|
|
|
- boolean isShowDialog = SharedPreferences.getInstance().getBoolean("isShowDialog",true);
|
|
|
+ boolean isShowDialog = SharedPreferences.getInstance().getBoolean("isShowDialog",true);
|
|
|
if(isShowDialog && !NotificationsUtils.isNotificationEnabled(mContext)){//没有开启通知权限
|
|
|
AlertDialog.Builder builder = new AlertDialog.Builder(mContext);
|
|
|
builder.setTitle("提示");
|