line too long
This commit is contained in:
parent
332f227bc1
commit
0c2516ccf8
@ -140,7 +140,13 @@ class KeysBackupSetupActivity : SimpleFragmentActivity() {
|
|||||||
intent.type = "text/plain"
|
intent.type = "text/plain"
|
||||||
intent.putExtra(Intent.EXTRA_TITLE, "riot-megolm-export-${session.myUserId}-${System.currentTimeMillis()}.txt")
|
intent.putExtra(Intent.EXTRA_TITLE, "riot-megolm-export-${session.myUserId}-${System.currentTimeMillis()}.txt")
|
||||||
|
|
||||||
startActivityForResult(Intent.createChooser(intent, getString(R.string.keys_backup_setup_step1_manual_export)), REQUEST_CODE_SAVE_MEGOLM_EXPORT)
|
startActivityForResult(
|
||||||
|
Intent.createChooser(
|
||||||
|
intent,
|
||||||
|
getString(R.string.keys_backup_setup_step1_manual_export)
|
||||||
|
),
|
||||||
|
REQUEST_CODE_SAVE_MEGOLM_EXPORT
|
||||||
|
)
|
||||||
} catch (activityNotFoundException: ActivityNotFoundException) {
|
} catch (activityNotFoundException: ActivityNotFoundException) {
|
||||||
toast(R.string.error_no_external_application_found)
|
toast(R.string.error_no_external_application_found)
|
||||||
}
|
}
|
||||||
@ -172,7 +178,7 @@ class KeysBackupSetupActivity : SimpleFragmentActivity() {
|
|||||||
if (data) {
|
if (data) {
|
||||||
toast(getString(R.string.encryption_exported_successfully))
|
toast(getString(R.string.encryption_exported_successfully))
|
||||||
Intent().apply {
|
Intent().apply {
|
||||||
putExtra(MANUAL_EXPORT, true)
|
putExtra(MANUAL_EXPORT, true)
|
||||||
}.let {
|
}.let {
|
||||||
setResult(Activity.RESULT_OK, it)
|
setResult(Activity.RESULT_OK, it)
|
||||||
finish()
|
finish()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user