Skip to content

Commit dfd9af4

Browse files
committed
Passcode/pattern wont be shown when pressing back on deleting the lock method
1 parent 49cd4d1 commit dfd9af4

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

owncloudApp/src/main/java/com/owncloud/android/presentation/ui/security/PatternActivity.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,11 @@ class PatternActivity : AppCompatActivity(), IEnableBiometrics {
147147
return true
148148
}
149149

150+
override fun onBackPressed() {
151+
PatternManager.onActivityStopped(this)
152+
super.onBackPressed()
153+
}
154+
150155
/**
151156
* Binds the appropriate listener to the pattern view.
152157
*/

owncloudApp/src/main/java/com/owncloud/android/presentation/ui/security/passcode/PassCodeActivity.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,11 @@ class PassCodeActivity : AppCompatActivity(), NumberKeyboardListener, IEnableBio
166166
return true
167167
}
168168

169+
override fun onBackPressed() {
170+
PassCodeManager.onActivityStopped(this)
171+
super.onBackPressed()
172+
}
173+
169174
private fun inflatePasscodeTxtLine() {
170175
val layout_code = findViewById<LinearLayout>(R.id.layout_code)
171176
val numberOfPasscodeDigits = (passCodeViewModel.getPassCode()?.length ?: passCodeViewModel.getNumberOfPassCodeDigits())

0 commit comments

Comments
 (0)