WordPress-FluxC-Android
WordPress-FluxC-Android copied to clipboard
Handle low memory errors while uploading logs
Fixes #3010
This addresses low-memory error cases during log uploads.
When there is low memory on the device and there is a log file with a large size that needs to be uploaded, the app crashes. Although this doesn't happen frequently, when it does occur for a user, it tends to happen repeatedly for that user. This PR resolves this issue by treating it as an IRRECOVERABLE_FAILURE and deleting the log file.
It's hard to test it. But I'd like you to review the solution.