Skip to content

Commit

Permalink
Merge pull request #1 from raheemadamboev/v1.0.1
Browse files Browse the repository at this point in the history
Added clearing pin programmatically;
  • Loading branch information
raheemadamboev committed Mar 4, 2023
2 parents c6b2484 + 3785b08 commit 399ece1
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,12 @@ object PinManager {
fun pinExists(): Boolean {
return getPreferences().contains(PIN_LOCK)
}

/**
* Clears the saved pin. By calling this function, you can clear the saved pin so that user can create a new pin without remembering
* the saved pin.
*/
fun clearPin() {
getPreferences().edit().remove(PIN_LOCK).apply()
}
}

0 comments on commit 399ece1

Please sign in to comment.