Skip to content

Commit

Permalink
Added clearing pin programmatically;
Browse files Browse the repository at this point in the history
  • Loading branch information
raheemadamboev committed Mar 4, 2023
1 parent 9bd94a0 commit 3785b08
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 3785b08

Please sign in to comment.