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");
|
_logger.info("Skipping local sync since permission has not been granted");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Platform.isAndroid && !isAppInBackground) {
|
if (Platform.isAndroid && !isAppInBackground) {
|
||||||
var permissionState = await PhotoManager.requestPermissionExtend();
|
final permissionState = await PhotoManager.requestPermissionExtend();
|
||||||
if (permissionState != PermissionState.authorized) {
|
if (permissionState != PermissionState.authorized) {
|
||||||
_logger.severe(
|
_logger.severe("sync requested with invalid permission",
|
||||||
"sync requested with invalid permission", permissionState);
|
permissionState.toString());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue