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) { when (fragmentArgs.pinMode) {
PinMode.CREATE -> showCreateFragment() PinMode.CREATE -> showCreateFragment()
PinMode.AUTH -> showAuthFragment() 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 { enum class PinMode {
CREATE, CREATE,
AUTH AUTH,
MODIFY
} }

View File

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