示例#1
0
 // 联系厂家
 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);
   }
 }
示例#2
0
 // 联系用户
 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);
   }
 }