Skip to content

Commit

Permalink
Fix permanently denied permission
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushik committed Jun 19, 2024
1 parent c59061d commit f60c2fe
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions data/lib/service/permission_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,7 @@ class PermissionService {

if (status.isDenied) {
final newStatus = await permission.request();
if (newStatus.isDenied || newStatus.isPermanentlyDenied) {
await openAppSettings();
return false;
} else {
return newStatus.isGranted;
}
return newStatus.isGranted;
} else if (status.isPermanentlyDenied) {
await openAppSettings();
return false;
Expand Down

0 comments on commit f60c2fe

Please sign in to comment.