-
Notifications
You must be signed in to change notification settings - Fork 537
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix qif export to SDCard #419
Conversation
👍 thanks :) |
@fefe982, beware this PR reverts the changes that fixed #357. Also, it's not considered good practice to have a method do more than what it's expected from its name (this confused me a lot while reading the code to fix the bug). I think we should be careful with SD card operations. It seems there's some inconsistency in how different devices handle it's access. That may be the cause of the export issues. |
@rivaldi8 so does it mean that sharing multiple files (split into QIF) is what causes the sharing file to fail? If so how can we fix that? Or was the problem with the SD card as temporary storage? At the moment, we rely on the Android getExternalStorageDirectory API. The assumption is that this will return us a location where can safely store the files regardless of the device. In the future I'm thinking of changing that to use the cache for the temporary internal export before we move the file to the location desired by the user. Hopefully that will be more reliably. |
@rivaldi8 I've already merged this request. |
@codinguser The problem with file sharing is that The general problem, I think, is that @fefe982 Could you describe the issue you are fixing with this PR so I can try to reproduce it? |
This issue being fixed is that QIF file was not being split into the @rivaldi8 Does this mean that the problem of not being able to export is If so then maybe we can do it as you suggest and treat all exports as a
|
Yes, it's failing again. |
@codinguser, are you working on this? If not, I can look into fixing it. |
@rivaldi8 please go ahead and look into it. |
@rivaldi8 have you been able to look into it yet? |
Yes, I'm working on it. |
@codinguser It have taken more time than I thought but I've finally finished with the fix. I just need some more time to review the changes, do some further clean up, and testing. I'll send a pull request tomorrow. |
@rivaldi8 great! looking forward to it... |
No description provided.