@Override
 public void onRequestPermissionsResult(
     int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
   super.onRequestPermissionsResult(requestCode, permissions, grantResults);
   if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {
     switch (requestCode) {
       case AppKeyMap.CUPCAKE: // 联系厂家
         String engineer = (String) permissionMap.get("engineer");
         if (!TextUtils.isEmpty(engineer)) {
           AppTools.CALL(engineer);
         }
         break;
       case AppKeyMap.DONUT: // 联系用户
         String user = (String) permissionMap.get("user");
         if (!TextUtils.isEmpty(user)) {
           AppTools.CALL(user);
         }
         break;
       case AppKeyMap.FROYO: // 地址
         double lat = (double) permissionMap.get("lat");
         double lng = (double) permissionMap.get("lng");
         String address = (String) permissionMap.get("address");
         if (lat != 0.0d && lng != 0.0d && !TextUtils.isEmpty(address)) {
           startLocationActivity(lat, lng, address);
         }
         break;
       case AppKeyMap.GINGERBREAD: // 短信转发
         smsForword();
         break;
     }
   }
 }
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   orderDetailLayout = (OrderDetailLayout) viewDataBinding;
   if (getIntent() != null) {
     orderId = getIntent().getStringExtra("orderId");
   }
   AppTools.registerBroadcast(
       new RefreshDataBroadcast(), AppKeyMap.REFRESH_AND_JUMPTO_SERVICED_PAGE);
 }
 @Override
 protected void onPause() {
   super.onPause();
   AppTools.stopLocate();
 }
 @Override
 protected void onNewIntent(Intent intent) {
   super.onNewIntent(intent);
   progressNewData();
 }
 @Override
 protected void onStop() {
   super.onStop();
   ViewUtils.endCountDown();
 }