| | |
| | | //处理从相册返回时取消的图片处理 |
| | | existingPaths.removeAll(resultPaths); |
| | | if (!existingPaths.isEmpty()) { |
| | | List<UplodFileState> toRemove = new ArrayList<>(); |
| | | for (String path : existingPaths) { |
| | | for (UplodFileState uplodFileState : uplodFileStates) { |
| | | if (path.equals(uplodFileState.getFilePath())) { |
| | | uplodFileState.getThisCall().cancel(); |
| | | uplodFileStates.remove(uplodFileState); |
| | | toRemove.add(uplodFileState); |
| | | } |
| | | } |
| | | } |
| | | uplodFileStates.removeAll(toRemove); |
| | | } |
| | | runOnUiThread(new Runnable() { |
| | | @Override |
| | |
| | | * 开始定位相关逻辑 |
| | | */ |
| | | private void startLocation() { |
| | | ServiceUtils.startLocationService(this, true); |
| | | ServiceUtils.startLocationService(this, true); |
| | | //获取定位服务传过来的坐标点 |
| | | LiveEventBus.get(CommonKeyName.locationData).observeForever(locationObserver); |
| | | } |