Browse Source

no message

master
lh 7 years ago
parent
commit
fc2629fc10
1 changed files with 11 additions and 1 deletions
  1. +11
    -1
      app/src/main/java/com/qhclh/ytzh/work/tablepoultry/TablepoultryActivity.java

+ 11
- 1
app/src/main/java/com/qhclh/ytzh/work/tablepoultry/TablepoultryActivity.java View File

@ -68,10 +68,19 @@ public class TablepoultryActivity extends BaseActivity implements CalendarDialog
} }
private boolean flag=false;
@Override @Override
protected void onResume() { protected void onResume() {
super.onResume(); super.onResume();
// GetAllWeatherAreas(System.currentTimeMillis());
if (flag==false) {
GetAllWeatherAreas(System.currentTimeMillis());
}
}
@Override
protected void onDestroy() {
super.onDestroy();
flag= false;
} }
private List<RpcObject> rpcList; private List<RpcObject> rpcList;
@ -126,6 +135,7 @@ public class TablepoultryActivity extends BaseActivity implements CalendarDialog
@Override @Override
public void onStartCalendarClick(Date date) { public void onStartCalendarClick(Date date) {
GetAllWeatherAreas(date.getTime()); GetAllWeatherAreas(date.getTime());
flag = true;
EventBus.getDefault().postSticky(new ChoseEvent(date.getTime())); EventBus.getDefault().postSticky(new ChoseEvent(date.getTime()));
} }


Loading…
Cancel
Save