|
|
@ -942,11 +942,15 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void onActionExportMessages() {
|
|
|
|
private void onActionExportMessages() {
|
|
|
|
|
|
|
|
String filename = Helper.sanitizeFilename(
|
|
|
|
|
|
|
|
folder.accountName.replace(" ", "_") + "_" +
|
|
|
|
|
|
|
|
folder.getDisplayName(context).replace(" ", "_") + "_" +
|
|
|
|
|
|
|
|
new SimpleDateFormat("yyyyMMdd").format(new Date().getTime()) + ".mbox");
|
|
|
|
|
|
|
|
|
|
|
|
Intent intent = new Intent(Intent.ACTION_CREATE_DOCUMENT);
|
|
|
|
Intent intent = new Intent(Intent.ACTION_CREATE_DOCUMENT);
|
|
|
|
intent.addCategory(Intent.CATEGORY_OPENABLE);
|
|
|
|
intent.addCategory(Intent.CATEGORY_OPENABLE);
|
|
|
|
intent.setType("*/*");
|
|
|
|
intent.setType("*/*");
|
|
|
|
intent.putExtra(Intent.EXTRA_TITLE, "fairemail_" +
|
|
|
|
intent.putExtra(Intent.EXTRA_TITLE, filename);
|
|
|
|
new SimpleDateFormat("yyyyMMdd").format(new Date().getTime()) + ".mbox");
|
|
|
|
|
|
|
|
Helper.openAdvanced(intent);
|
|
|
|
Helper.openAdvanced(intent);
|
|
|
|
|
|
|
|
|
|
|
|
if (intent.resolveActivity(context.getPackageManager()) == null) { // // system/GET_CONTENT whitelisted
|
|
|
|
if (intent.resolveActivity(context.getPackageManager()) == null) { // // system/GET_CONTENT whitelisted
|
|
|
|