示例#1
0
 public void onEvent(TedPermissionEvent event) {
   if (event.hasPermission()) {
     listener.onPermissionGranted();
   } else {
     listener.onPermissionDenied(event.getDeniedPermissions());
   }
   EventBus.getDefault().unregister(this);
 }
 @Override
 public void onPermissionDenied(PermissionDeniedResponse response) {
   for (PermissionListener listener : listeners) {
     listener.onPermissionDenied(response);
   }
 }