Changed backup file type to text/plain, fixes #1

This commit is contained in:
bitscuit 2021-03-28 15:35:16 +02:00
parent 4c60dc8eb6
commit 9f7578989b
1 changed files with 3 additions and 3 deletions

View File

@ -218,8 +218,8 @@ public class SettingsActivity extends AppCompatActivity {
}
Intent intent = new Intent(Intent.ACTION_CREATE_DOCUMENT);
intent.addCategory(Intent.CATEGORY_OPENABLE);
intent.setType("application/clndr");
intent.putExtra(Intent.EXTRA_TITLE, "calendar_backup_"+Util.formatMillis(System.currentTimeMillis(), "yyyyMMddHHmmss")+".clndr");
intent.setType("text/plain");
intent.putExtra(Intent.EXTRA_TITLE, "calendar_backup_"+Util.formatMillis(System.currentTimeMillis(), "yyyyMMddHHmmss")+".txt");
startActivityForResult(intent, RC_CREATE_FILE);//Result handled in onActivityResult()
}
@ -234,7 +234,7 @@ public class SettingsActivity extends AppCompatActivity {
}
Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);
intent.addCategory(Intent.CATEGORY_OPENABLE);
intent.setType("application/clndr");
intent.setType("text/plain");
startActivityForResult(intent, RC_OPEN_FILE);
}