|
|
@@ -1,6 +1,8 @@
|
|
|
package com.sheep.gamegroup.view.activity;
|
|
|
|
|
|
import android.app.Activity;
|
|
|
+import android.content.Intent;
|
|
|
+import android.support.annotation.Nullable;
|
|
|
import android.support.design.widget.TabLayout;
|
|
|
import android.support.v4.view.ViewPager;
|
|
|
import android.view.View;
|
|
|
@@ -8,6 +10,9 @@ import android.view.View;
|
|
|
import com.sheep.gamegroup.absBase.BaseActivity;
|
|
|
import com.sheep.gamegroup.event.BigEvent;
|
|
|
import com.sheep.gamegroup.model.entity.DialogConfig;
|
|
|
+import com.sheep.gamegroup.model.entity.Release_task;
|
|
|
+import com.sheep.gamegroup.module.task.fragments.VideoTaskDialogUtil;
|
|
|
+import com.sheep.gamegroup.util.GsonUtils;
|
|
|
import com.sheep.gamegroup.util.Jump2View;
|
|
|
import com.sheep.gamegroup.util.ViewUtil;
|
|
|
import com.sheep.gamegroup.view.adapter.AdpTryMakemoney;
|
|
|
@@ -20,6 +25,9 @@ import org.greenrobot.eventbus.Subscribe;
|
|
|
|
|
|
import butterknife.BindView;
|
|
|
|
|
|
+import static com.sheep.gamegroup.module.task.fragments.FgtVideoTaskBase.KEY_RELEASE_TASK;
|
|
|
+import static com.sheep.gamegroup.util.Constant.REQUEST_CODE_GOT_REWARDS;
|
|
|
+
|
|
|
/**
|
|
|
* 试着赚钱页面
|
|
|
* Created by ljy on 2018/3/10.
|
|
|
@@ -117,4 +125,15 @@ public class TryMakeMoneyact extends BaseActivity {
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ protected void onActivityResult(int requestCode, int resultCode, @Nullable @org.jetbrains.annotations.Nullable Intent intent) {
|
|
|
+ super.onActivityResult(requestCode, resultCode, intent);
|
|
|
+ if(resultCode == RESULT_OK){
|
|
|
+ if (requestCode == REQUEST_CODE_GOT_REWARDS) {
|
|
|
+ Release_task releaseTask = GsonUtils.getGlobalGson().fromJson(intent.getStringExtra(KEY_RELEASE_TASK), Release_task.class);
|
|
|
+ VideoTaskDialogUtil.showRewardsGotDialog(TryMakeMoneyact.this, releaseTask);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|