Change file names with the new brand.

This commit is contained in:
Onuray Sahin 2020-07-10 13:11:01 +03:00
parent 93fe00a299
commit 541e1fc4cc
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ class KeysExporter(private val session: Session) {
val data = awaitCallback<ByteArray> { session.cryptoService().exportRoomKeys(password, it) } val data = awaitCallback<ByteArray> { session.cryptoService().exportRoomKeys(password, it) }
withContext(Dispatchers.IO) { withContext(Dispatchers.IO) {
val parentDir = context.getExternalFilesDir(Environment.DIRECTORY_DOWNLOADS) val parentDir = context.getExternalFilesDir(Environment.DIRECTORY_DOWNLOADS)
val file = File(parentDir, "riotx-keys-" + System.currentTimeMillis() + ".txt") val file = File(parentDir, "element-keys-" + System.currentTimeMillis() + ".txt")
writeToFile(data, file) writeToFile(data, file)

View File

@ -61,7 +61,7 @@ class BootstrapSaveRecoveryKeyFragment @Inject constructor(
val intent = Intent(Intent.ACTION_CREATE_DOCUMENT) val intent = Intent(Intent.ACTION_CREATE_DOCUMENT)
intent.addCategory(Intent.CATEGORY_OPENABLE) intent.addCategory(Intent.CATEGORY_OPENABLE)
intent.type = "text/plain" intent.type = "text/plain"
intent.putExtra(Intent.EXTRA_TITLE, "riot-recovery-key.txt") intent.putExtra(Intent.EXTRA_TITLE, "element-recovery-key.txt")
try { try {
sharedViewModel.handle(BootstrapActions.SaveReqQueryStarted) sharedViewModel.handle(BootstrapActions.SaveReqQueryStarted)