diff --git a/kuama_permissions/example/pubspec.yaml b/kuama_permissions/example/pubspec.yaml index 280ee78..9ebbb98 100644 --- a/kuama_permissions/example/pubspec.yaml +++ b/kuama_permissions/example/pubspec.yaml @@ -12,13 +12,13 @@ dependencies: kuama_permissions: git: url: https://github.com/Kuama-IT/kuama_dart.git - ref: release path: kuama_permissions + ref: 0.2.2 kuama_position: git: url: https://github.com/Kuama-IT/kuama_dart.git - ref: release path: kuama_position + ref: 0.2.2 shared_preferences: ^2.0.15 geolocator: ^9.0.0 diff --git a/kuama_permissions/lib/src/services/permissions_service.dart b/kuama_permissions/lib/src/services/permissions_service.dart index cfa2e24..c85fde3 100644 --- a/kuama_permissions/lib/src/services/permissions_service.dart +++ b/kuama_permissions/lib/src/services/permissions_service.dart @@ -86,7 +86,7 @@ class PermissionsService { Stream get onRequiredPermissionsRefresh async* { AppLifecycleState prevState = AppLifecycleState.paused; await for (final state in _appLifecycleState.onChanges) { - if (prevState == AppLifecycleState.paused && state == AppLifecycleState.resumed) { + if (prevState != AppLifecycleState.resumed && state == AppLifecycleState.resumed) { yield null; } prevState = state;