mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-18 21:10:02 +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) {
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,5 +18,6 @@ package im.vector.app.features.pin
|
||||||
|
|
||||||
enum class PinMode {
|
enum class PinMode {
|
||||||
CREATE,
|
CREATE,
|
||||||
AUTH
|
AUTH,
|
||||||
|
MODIFY
|
||||||
}
|
}
|
||||||
|
|
|
@ -85,7 +85,7 @@ class VectorSettingsPinFragment @Inject constructor(
|
||||||
navigator.openPinCode(
|
navigator.openPinCode(
|
||||||
requireContext(),
|
requireContext(),
|
||||||
pinActivityResultLauncher,
|
pinActivityResultLauncher,
|
||||||
PinMode.CREATE
|
PinMode.MODIFY
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
true
|
true
|
||||||
|
|
Loading…
Add table
Reference in a new issue