|
|
|
@ -53,7 +53,7 @@ public class ChangleFragment extends BaseFragment { |
|
|
|
} |
|
|
|
|
|
|
|
private long mType; |
|
|
|
private long choseDate=0; |
|
|
|
private long choseDate=System.currentTimeMillis(); |
|
|
|
|
|
|
|
@Override |
|
|
|
protected int setLayout() { |
|
|
|
@ -90,12 +90,7 @@ public class ChangleFragment extends BaseFragment { |
|
|
|
@Override |
|
|
|
public void onResume() { |
|
|
|
super.onResume(); |
|
|
|
if (choseDate!=0) { |
|
|
|
BreedFactoryReportListView(choseDate); |
|
|
|
}else { |
|
|
|
choseDate =System.currentTimeMillis(); |
|
|
|
BreedFactoryReportListView(choseDate); |
|
|
|
} |
|
|
|
BreedFactoryReportListView(choseDate); |
|
|
|
} |
|
|
|
|
|
|
|
private void BreedFactoryReportListView(final long time) { |
|
|
|
@ -248,7 +243,7 @@ public class ChangleFragment extends BaseFragment { |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Subscribe(threadMode = ThreadMode.MAIN,sticky = false) |
|
|
|
@Subscribe(threadMode = ThreadMode.MAIN,sticky = true) |
|
|
|
public void onEvent(ChoseEvent event){ |
|
|
|
choseDate = event.getTime(); |
|
|
|
BreedFactoryReportListView(event.getTime()); |
|
|
|
@ -262,5 +257,9 @@ public class ChangleFragment extends BaseFragment { |
|
|
|
} |
|
|
|
list.clear(); |
|
|
|
choseDate=0; |
|
|
|
if (EventBus.getDefault().getStickyEvent(ChoseEvent.class) != null){ |
|
|
|
EventBus.getDefault().removeStickyEvent(ChoseEvent.class); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |