use final and fix logging
This commit is contained in:
parent
552813d0bd
commit
f16ff8510a
1 changed files with 3 additions and 4 deletions
|
@ -55,12 +55,11 @@ class LocalSyncService {
|
|||
_logger.info("Skipping local sync since permission has not been granted");
|
||||
return;
|
||||
}
|
||||
|
||||
if (Platform.isAndroid && !isAppInBackground) {
|
||||
var permissionState = await PhotoManager.requestPermissionExtend();
|
||||
final permissionState = await PhotoManager.requestPermissionExtend();
|
||||
if (permissionState != PermissionState.authorized) {
|
||||
_logger.severe(
|
||||
"sync requested with invalid permission", permissionState);
|
||||
_logger.severe("sync requested with invalid permission",
|
||||
permissionState.toString());
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue