Changed backup file type to text/plain, fixes #1
This commit is contained in:
parent
4c60dc8eb6
commit
9f7578989b
|
@ -218,8 +218,8 @@ public class SettingsActivity extends AppCompatActivity {
|
||||||
}
|
}
|
||||||
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("application/clndr");
|
intent.setType("text/plain");
|
||||||
intent.putExtra(Intent.EXTRA_TITLE, "calendar_backup_"+Util.formatMillis(System.currentTimeMillis(), "yyyyMMddHHmmss")+".clndr");
|
intent.putExtra(Intent.EXTRA_TITLE, "calendar_backup_"+Util.formatMillis(System.currentTimeMillis(), "yyyyMMddHHmmss")+".txt");
|
||||||
|
|
||||||
startActivityForResult(intent, RC_CREATE_FILE);//Result handled in onActivityResult()
|
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 intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);
|
||||||
intent.addCategory(Intent.CATEGORY_OPENABLE);
|
intent.addCategory(Intent.CATEGORY_OPENABLE);
|
||||||
intent.setType("application/clndr");
|
intent.setType("text/plain");
|
||||||
|
|
||||||
startActivityForResult(intent, RC_OPEN_FILE);
|
startActivityForResult(intent, RC_OPEN_FILE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue