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