| | |
| | | houseIdBean.setDebugStatus(DebugStatus.Debugging); |
| | | HdlResidenceLogic.getInstance().updateHouseIdBean(houseIdBean); |
| | | initData(); |
| | | if (houseInfoAdapter != null) { |
| | | houseInfoAdapter.setList(houseListBeanIDList, powerStationStatusValue);//重新刷新列表 |
| | | } |
| | | //更新UI |
| | | houseInfoAdapter.notifyItemChanged(position); |
| | | // houseInfoAdapter.notifyItemChanged(position); |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | public void requestPermissions(OnCallBeak onCallBeak) { |
| | | |
| | | //ACCESS_FINE_LOCATION 允许使用GPS定位 |
| | | //ACCESS_COARSE_LOCATION 允许使用WIFI热点或基站来获取粗略的定位 |
| | | //ACCESS_FINE_LOCATION 允许使用GPS定位 |
| | | //ACCESS_COARSE_LOCATION 允许使用WIFI热点或基站来获取粗略的定位 |
| | | String[] ary = PermissionUtils.checkPermission(_mActivity, new String[]{Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION}); |
| | | if (ary.length > 0) { |
| | | this.requestPermissions(ary, PermissionUtils.STATUS_SUCCESS); |
| | |
| | | } |
| | | |
| | | |
| | | } |
| | | } |