Fix adapter update after QR code scan
This commit is contained in:
parent
58ef2bc2ff
commit
6a029f0915
1 changed files with 1 additions and 0 deletions
|
@ -343,6 +343,7 @@ public class MainActivity extends AppCompatActivity {
|
|||
Entry e = new Entry(intent.getStringExtra(Intents.Scan.RESULT));
|
||||
e.setCurrentOTP(TOTPHelper.generate(e.getSecret(), e.getPeriod()));
|
||||
entries.add(e);
|
||||
adapter.setEntries(entries);
|
||||
SettingsHelper.store(this, entries);
|
||||
|
||||
adapter.notifyDataSetChanged();
|
||||
|
|
Loading…
Reference in a new issue