|
|
@@ -12,8 +12,10 @@ import android.widget.LinearLayout;
|
|
|
import android.widget.RelativeLayout;
|
|
|
import android.widget.TextView;
|
|
|
|
|
|
+import com.sheep.gamegroup.model.entity.SystemNotification;
|
|
|
import com.sheep.gamegroup.view.adapter.ViewPagerFragmentAdapter;
|
|
|
import com.sheep.gamegroup.event.BigEvent;
|
|
|
+import com.sheep.gamegroup.view.fragment.FgtAudit;
|
|
|
import com.sheep.gamegroup.view.fragment.FgtFind;
|
|
|
import com.sheep.gamegroup.util.MainTab;
|
|
|
import com.kfzs.duanduan.utils.StatusBarUtils;
|
|
|
@@ -23,6 +25,7 @@ import com.sheep.gamegroup.model.entity.Container;
|
|
|
import com.sheep.gamegroup.util.DrawablesHelper;
|
|
|
import com.sheep.gamegroup.util.ListUtil;
|
|
|
import com.sheep.gamegroup.util.UMConfigUtils;
|
|
|
+import com.sheep.gamegroup.view.fragment.FgtMainAudit;
|
|
|
import com.sheep.jiuyan.samllsheep.R;
|
|
|
import com.sheep.jiuyan.samllsheep.SheepApp;
|
|
|
import com.sheep.jiuyan.samllsheep.utils.G;
|
|
|
@@ -257,6 +260,22 @@ public class ActMain extends BaseActivity {
|
|
|
if (container != null && container.getT() != null)
|
|
|
container.getT().call(1);
|
|
|
}
|
|
|
+ @Override
|
|
|
+ public void doNextAction(Object action){
|
|
|
+ if(action instanceof SystemNotification){
|
|
|
+ int auditPosition = MainTab.FgtMainAudit.ordinal();
|
|
|
+ view_pager_container.setCurrentItem(auditPosition, false);
|
|
|
+ FgtMainAudit fragment = (FgtMainAudit) fragmentList.get(auditPosition);
|
|
|
+ switch (((SystemNotification) action).getType()){//5:任务成功 6:任务失败
|
|
|
+ case 5:
|
|
|
+ fragment.setCurrentItem(1, false);//审核成功在位置1
|
|
|
+ break;
|
|
|
+ case 6:
|
|
|
+ fragment.setCurrentItem(2, false);//审核失败在位置2
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
@Override
|
|
|
protected void onPause() {
|