fix bug when otp was not updated when Activity was not visible
This commit is contained in:
parent
51f3bbc9d4
commit
ef22f5fcc5
1 changed files with 1 additions and 3 deletions
|
@ -114,9 +114,7 @@ public class MainActivity extends AppCompatActivity implements ActionMode.Callb
|
||||||
animation.start();
|
animation.start();
|
||||||
|
|
||||||
for(int i =0;i< adapter.getCount();i++){
|
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();
|
adapter.notifyDataSetChanged();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue