mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-27 12:00:03 +03:00
Create a new pin mode for changing pin code.
This commit is contained in:
parent
ffe9a03d3e
commit
694397efc1
3 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -18,5 +18,6 @@ package im.vector.app.features.pin
|
|||
|
||||
enum class PinMode {
|
||||
CREATE,
|
||||
AUTH
|
||||
AUTH,
|
||||
MODIFY
|
||||
}
|
||||
|
|
|
@ -85,7 +85,7 @@ class VectorSettingsPinFragment @Inject constructor(
|
|||
navigator.openPinCode(
|
||||
requireContext(),
|
||||
pinActivityResultLauncher,
|
||||
PinMode.CREATE
|
||||
PinMode.MODIFY
|
||||
)
|
||||
}
|
||||
true
|
||||
|
|
Loading…
Reference in a new issue