bitsongofficial / wallet-mobile

1 stars 2 forks source link

App lock timer #126

Closed EnricoBarbieri1997 closed 2 years ago

EnricoBarbieri1997 commented 2 years ago

Right now app timer updates itself each second decreasing the remaining time. We should move to an implementation where it takes as input the block end time and shows the remaining time. The reason is that is both more efficient and enables to store the end time locally so the user can't just close the app and reopen it to elude the block.

zheleznov163 commented 2 years ago

I changed the timer behavior significantly, and initialized it as an example in the SettignsStore. It probably needs some extra code to check for a lock during application startup. I added a save to storage but didn't test it and left it commented out