Pass mime type so that SAF treats file extension correctly
This commit is contained in:
parent
eea43d5a73
commit
114dc8ffa0
5 changed files with 10 additions and 7 deletions
|
|
@ -66,7 +66,8 @@ public class ContentSettingsFragment extends BasePreferenceFragment {
|
|||
exportDataPreference.setOnPreferenceClickListener((final Preference p) -> {
|
||||
final SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd_HHmmss", Locale.US);
|
||||
startActivityForResult(StoredFileHelper.getNewPicker(getContext(), null,
|
||||
"NewPipeData-" + sdf.format(new Date()) + ".zip"), REQUEST_EXPORT_PATH);
|
||||
"NewPipeData-" + sdf.format(new Date()) + ".zip", "application/zip"),
|
||||
REQUEST_EXPORT_PATH);
|
||||
return true;
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue