[mob][photos] Workaround for android 10 free up space issue
Workaround for deletedIDs being empty on android 10
This commit is contained in:
@@ -373,8 +373,14 @@ Future<bool> deleteLocalFiles(
|
||||
);
|
||||
return true;
|
||||
} else {
|
||||
showToast(context, S.of(context).couldNotFreeUpSpace);
|
||||
return false;
|
||||
//On android 10, even if files were deleted, deletedIDs is empty.
|
||||
//This is a workaround so that users are not shown an error message on
|
||||
//android 10
|
||||
if (!await isAndroidSDKVersionLowerThan(android11SDKINT)) {
|
||||
showToast(context, S.of(context).couldNotFreeUpSpace);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user