Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,13 @@ class SetupEncryptionActivity : AppCompatActivity() {
}
finish()
}
setupEncryptionDialogFragment.show(supportFragmentManager, "setup_encryption")

// Only show a new dialog the first time: on recreation the FragmentManager
// restores the existing dialog with its saved passphrase. Showing a fresh
// one here would generate a new passphrase and lose the one being copied.
if (savedInstanceState == null) {
setupEncryptionDialogFragment.show(supportFragmentManager, "setup_encryption")
}
}

private fun buildResultIntentFromBundle(result: Bundle): Intent = Intent().apply {
Expand Down