Skip to content

Commit

Permalink
Create a new pin mode for changing pin code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Onuray Sahin committed Nov 30, 2020
1 parent ffe9a03 commit 694397e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down
3 changes: 2 additions & 1 deletion vector/src/main/java/im/vector/app/features/pin/PinMode.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ package im.vector.app.features.pin

enum class PinMode {
CREATE,
AUTH
AUTH,
MODIFY
}
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class VectorSettingsPinFragment @Inject constructor(
navigator.openPinCode(
requireContext(),
pinActivityResultLauncher,
PinMode.CREATE
PinMode.MODIFY
)
}
true
Expand Down

0 comments on commit 694397e

Please sign in to comment.