| | |
| | | return instance;
|
| | | }
|
| | |
|
| | | List<SurveillanceQueryItem> allItems = new ArrayList<>();
|
| | | static List<SurveillanceQueryItem> allItems = new ArrayList<>();
|
| | |
|
| | | public void addItems(List<SurveillanceQueryItem> unknownItems) {
|
| | | allItems.addAll(unknownItems);
|
| | |
| | | }
|
| | |
|
| | | public void removeTimeoutItemAndShow() {
|
| | | synchronized (this) {
|
| | | List itemsToRemove = new ArrayList();
|
| | | for (SurveillanceQueryItem item : allItems) {
|
| | | if (item.getRegisterOrCheckIn() == CommonVariables.Surveillance.OFFLINE_SURVEILLANCE_ITEM_TYPE) {
|
| | |
| | | }
|
| | | }
|
| | | allItems.removeAll(itemsToRemove);
|
| | | }
|
| | | MainActivity.getInstance().runOnUiThread(new Runnable() {
|
| | | @Override
|
| | | public void run() {
|