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
308
308
* rationale, false otherwise.
309
309
*/
310
310
public static boolean somePermissionDenied (@ NonNull Activity host ,
311
- @ NonNull String [] perms ) {
311
+ @ NonNull String ... perms ) {
312
312
return PermissionHelper .newInstance (host ).somePermissionDenied (perms );
313
313
}
314
314
315
315
/**
316
- * @see #somePermissionDenied(Activity, String[] )
316
+ * @see #somePermissionDenied(Activity, String... )
317
317
*/
318
318
public static boolean somePermissionDenied (@ NonNull Fragment host ,
319
- @ NonNull String [] perms ) {
319
+ @ NonNull String ... perms ) {
320
320
return PermissionHelper .newInstance (host ).somePermissionDenied (perms );
321
321
}
322
322
323
323
/**
324
- * @see #somePermissionDenied(Activity, String[] )
324
+ * @see #somePermissionDenied(Activity, String... )
325
325
*/
326
326
public static boolean somePermissionDenied (@ NonNull android .app .Fragment host ,
327
- @ NonNull String [] perms ) {
327
+ @ NonNull String ... perms ) {
328
328
return PermissionHelper .newInstance (host ).somePermissionDenied (perms );
329
329
}
330
330
Original file line number Diff line number Diff line change @@ -55,10 +55,10 @@ public static PermissionHelper newInstance(android.app.Fragment host) {
55
55
// ============================================================================
56
56
57
57
public PermissionHelper (@ NonNull T host ) {
58
- this . mHost = host ;
58
+ mHost = host ;
59
59
}
60
60
61
- public boolean shouldShowRationale (@ NonNull String [] perms ) {
61
+ public boolean shouldShowRationale (@ NonNull String ... perms ) {
62
62
for (String perm : perms ) {
63
63
if (shouldShowRequestPermissionRationale (perm )) {
64
64
return true ;
@@ -81,7 +81,7 @@ public boolean permissionPermanentlyDenied(@NonNull String perms) {
81
81
return !shouldShowRequestPermissionRationale (perms );
82
82
}
83
83
84
- public boolean somePermissionDenied (@ NonNull String [] perms ) {
84
+ public boolean somePermissionDenied (@ NonNull String ... perms ) {
85
85
return shouldShowRationale (perms );
86
86
}
87
87
You can’t perform that action at this time.
0 commit comments