Create a new pin mode for changing pin code.

This commit is contained in:
Onuray Sahin 2020-11-30 13:51:40 +03:00
parent ffe9a03d3e
commit 694397efc1
3 changed files with 4 additions and 2 deletions

View file

@ -56,6 +56,7 @@ class PinFragment @Inject constructor(
when (fragmentArgs.pinMode) {
PinMode.CREATE -> showCreateFragment()
PinMode.AUTH -> showAuthFragment()
PinMode.MODIFY -> showCreateFragment() // No need to create another function for now because texts are generic
}
}

View file

@ -18,5 +18,6 @@ package im.vector.app.features.pin
enum class PinMode {
CREATE,
AUTH
AUTH,
MODIFY
}

View file

@ -85,7 +85,7 @@ class VectorSettingsPinFragment @Inject constructor(
navigator.openPinCode(
requireContext(),
pinActivityResultLauncher,
PinMode.CREATE
PinMode.MODIFY
)
}
true