Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
fix bug when otp was not updated when Activity was not visible
Browse files Browse the repository at this point in the history
  • Loading branch information
0xbb committed Dec 19, 2015
1 parent 51f3bbc commit ef22f5f
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,7 @@ public void run() {
animation.start();

for(int i =0;i< adapter.getCount();i++){
if(progress == 0 || adapter.getItem(i).getCurrentOTP() == null){
adapter.getItem(i).setCurrentOTP(TOTPHelper.generate(adapter.getItem(i).getSecret()));
}
adapter.getItem(i).setCurrentOTP(TOTPHelper.generate(adapter.getItem(i).getSecret()));
}
adapter.notifyDataSetChanged();

Expand Down

0 comments on commit ef22f5f

Please sign in to comment.