| | |
| | | if (selectedPerson1 != null) { |
| | | faceListAdapter.personList.remove(selectedPerson1); |
| | | } |
| | | mainActivity().fragment_person_manage.selectedPerson = selectedPerson; |
| | | mainActivity().fragment_person_manage.selectedPerson(selectedPerson); |
| | | faceListAdapter.personList.add(0, selectedPerson); |
| | | } |
| | | } |
| | |
| | | |
| | | @UiThread |
| | | public void findPersonList1UI(ModelAdapter selectedPerson) { |
| | | mainActivity().fragment_person_manage.selectedPerson = selectedPerson; |
| | | mainActivity().fragment_person_manage.selectedPerson(selectedPerson); |
| | | if (!TextUtils.isEmpty(getFaceListFragment().isRegister()) && "未注册".equals(getFaceListFragment().isRegister())) { |
| | | int size = getFaceListFragment().faceListAdapter.personList.size(); |
| | | if (size > 0) { |
| | |
| | | getFaceListFragment().faceListAdapter.setSelection(0); |
| | | getFaceListFragment().faceListAdapter.notifyDataSetChanged(); |
| | | } |
| | | mainActivity().fragment_face_detail.updateDetailUI(selectedPerson); |
| | | mainActivity().fragment_face_detail.updateIdentityListUI1(selectedPerson); |
| | | // mainActivity().fragment_face_detail.updateDetailUI(selectedPerson); |
| | | // mainActivity().fragment_face_detail.updateIdentityListUI1(selectedPerson); |
| | | } |
| | | |
| | | public void findPersonList() { |
| | |
| | | if (BaseSettingManager.isPassMode()) { |
| | | ToastUtil.show("通行模式不允许注册"); |
| | | } else { |
| | | mainActivity().fragment_person_manage.selectedPerson(null); |
| | | if (BaseSettingManager.isAdminAuthSignUpModeNeedIdCard() |
| | | || BaseSettingManager.isAutoSignUpIDCardMode()) { |
| | | mainActivity().showFragment(mainActivity().fragment_su_logged_ic_wait_face); |
| | |
| | | } else { |
| | | try { |
| | | ModelAdapter person = faceListAdapter.personList.get(position); |
| | | isNeedIDCard(position); |
| | | mainActivity().fragment_person_manage.selectedPerson = person; |
| | | mainActivity().fragment_face_detail.updateIdentityListUI2(person); |
| | | mainActivity().fragment_face_detail.updateDetailUI(person); |
| | | faceListAdapter.setSelection(position); |
| | | faceListAdapter.notifyDataSetChanged(); |
| | | BaseApplication.getApplication().executorService.execute(() -> { |
| | | try { |
| | | isNeedIDCard(position); |
| | | ModelAdapter reloadPerson = PersonManager.findPersonById(person.getString(Person.id)); |
| | | mainActivity().fragment_person_manage.selectedPerson(reloadPerson); |
| | | faceListAdapter.setSelection(position); |
| | | |
| | | BaseApplication.getApplication().activity.runOnUiThread(() -> { |
| | | faceListAdapter.notifyDataSetChanged(); |
| | | }); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | }); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |