mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-02 20:26:47 +01:00
Create a new pin mode for changing pin code.
This commit is contained in:
parent
ffe9a03d3e
commit
694397efc1
@ -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…
x
Reference in New Issue
Block a user