Fix issue with key importation

This commit is contained in:
Benoit Marty
2019-06-14 15:42:57 +02:00
parent 659ba34fb3
commit 191d80e5f5
6 changed files with 49 additions and 32 deletions

View File

@ -33,7 +33,7 @@ import timber.log.Timber
class KeysImporter(private val session: Session) {
/**
* Export keys and return the file path with the callback
* Import keys from provided Uri
*/
fun import(context: Context,
uri: Uri,

View File

@ -2702,6 +2702,8 @@ class VectorSettingsPreferencesFragment : VectorPreferenceFragment(), SharedPref
importButton.setOnClickListener(View.OnClickListener {
val password = passPhraseEditText.text.toString()
displayLoadingView()
KeysImporter(mSession)
.import(requireContext(),
uri,