It seems that, while trying to add a file, regardless of the Intent type is set to "text/comma-separated-values", it still shows other files as selectable in older android devices.
So just setting intent type will not to be enough. We should also check whether the file is CSV or not in onResult.
Steps to reproduce the bug
- Open any folder
- Click
ADD button
Expected Behavior
Only CSV files should be selectable
Actual Behavior
In some (old) Android devices all files are selectable.
Result
App crashes when we click START ALL button after adding the non CSV file