// 联系厂家 private void contactEngineer(OrderDetailBean.DataEntity detail) { final String factory_technology_tel = detail.getFactory_technology_tel(); DialDialog dialDialog = new DialDialog(this, null); if (PermissionTools.alreadyHasPermission( this, AppKeyMap.CUPCAKE, Manifest.permission.CALL_PHONE)) { dialDialog.call(factory_technology_tel); } else { permissionMap.put("engineer", factory_technology_tel); } }
// 联系用户 private void contactUser(OrderDetailBean.DataEntity detail) { final String tel = detail.getTel(); DialDialog dialDialog = new DialDialog(this, null); if (PermissionTools.alreadyHasPermission( this, AppKeyMap.DONUT, Manifest.permission.CALL_PHONE)) { dialDialog.call(tel); } else { permissionMap.put("user", tel); } }