This repository was archived by the owner on Oct 3, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
easypermissions/src/main/java/pub/devrel/easypermissions Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -308,23 +308,23 @@ public static boolean permissionPermanentlyDenied(@NonNull android.app.Fragment
308308 * rationale, false otherwise.
309309 */
310310 public static boolean somePermissionDenied (@ NonNull Activity host ,
311- @ NonNull String [] perms ) {
311+ @ NonNull String ... perms ) {
312312 return PermissionHelper .newInstance (host ).somePermissionDenied (perms );
313313 }
314314
315315 /**
316- * @see #somePermissionDenied(Activity, String[] )
316+ * @see #somePermissionDenied(Activity, String... )
317317 */
318318 public static boolean somePermissionDenied (@ NonNull Fragment host ,
319- @ NonNull String [] perms ) {
319+ @ NonNull String ... perms ) {
320320 return PermissionHelper .newInstance (host ).somePermissionDenied (perms );
321321 }
322322
323323 /**
324- * @see #somePermissionDenied(Activity, String[] )
324+ * @see #somePermissionDenied(Activity, String... )
325325 */
326326 public static boolean somePermissionDenied (@ NonNull android .app .Fragment host ,
327- @ NonNull String [] perms ) {
327+ @ NonNull String ... perms ) {
328328 return PermissionHelper .newInstance (host ).somePermissionDenied (perms );
329329 }
330330
Original file line number Diff line number Diff line change @@ -55,10 +55,10 @@ public static PermissionHelper newInstance(android.app.Fragment host) {
5555 // ============================================================================
5656
5757 public PermissionHelper (@ NonNull T host ) {
58- this . mHost = host ;
58+ mHost = host ;
5959 }
6060
61- public boolean shouldShowRationale (@ NonNull String [] perms ) {
61+ public boolean shouldShowRationale (@ NonNull String ... perms ) {
6262 for (String perm : perms ) {
6363 if (shouldShowRequestPermissionRationale (perm )) {
6464 return true ;
@@ -81,7 +81,7 @@ public boolean permissionPermanentlyDenied(@NonNull String perms) {
8181 return !shouldShowRequestPermissionRationale (perms );
8282 }
8383
84- public boolean somePermissionDenied (@ NonNull String [] perms ) {
84+ public boolean somePermissionDenied (@ NonNull String ... perms ) {
8585 return shouldShowRationale (perms );
8686 }
8787
You can’t perform that action at this time.
0 commit comments