|
|
@@ -10,6 +10,7 @@ import android.widget.LinearLayout;
|
|
|
import android.widget.TextView;
|
|
|
|
|
|
import com.kfzs.duanduan.BaseCompatFragment;
|
|
|
+import com.kfzs.duanduan.event.BigEvent;
|
|
|
import com.kfzs.duanduan.mine.GiftpackListAdapter;
|
|
|
import com.sheep.gamegroup.model.entity.BaseMessage;
|
|
|
import com.sheep.gamegroup.model.entity.TaskAuditEntity;
|
|
|
@@ -20,6 +21,9 @@ import com.sheep.jiuyan.samllsheep.R;
|
|
|
import com.sheep.jiuyan.samllsheep.utils.G;
|
|
|
import com.sheep.jiuyan.samllsheep.utils.TitleBarUtils;
|
|
|
|
|
|
+import org.greenrobot.eventbus.EventBus;
|
|
|
+import org.greenrobot.eventbus.Subscribe;
|
|
|
+
|
|
|
import butterknife.BindView;
|
|
|
import butterknife.ButterKnife;
|
|
|
import butterknife.Unbinder;
|
|
|
@@ -56,6 +60,7 @@ public class FgtMainAudit extends BaseCompatFragment {
|
|
|
|
|
|
@Override
|
|
|
protected void initView(Bundle savedInstanceState) {
|
|
|
+ EventBus.getDefault().register(this);
|
|
|
setContentView(R.layout.act_audit_layout);
|
|
|
activity = getActivity();
|
|
|
|
|
|
@@ -169,5 +174,24 @@ public class FgtMainAudit extends BaseCompatFragment {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ @Subscribe
|
|
|
+ public void onEventMainThread(BigEvent event) {
|
|
|
+ switch (event.getEventTypes()) {
|
|
|
+ case REFRESH_AUDITACTIVITY_DATA:
|
|
|
+ try {
|
|
|
+ initData();
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void onDestroy() {
|
|
|
+ super.onDestroy();
|
|
|
+ EventBus.getDefault().unregister(this);
|
|
|
+ }
|
|
|
}
|
|
|
|