This commit is contained in:
MrLetsplay 2023-09-28 16:12:13 +02:00
parent 7dd500ad87
commit 522a066dc5
Signed by: mr
SSH Key Fingerprint: SHA256:92jBH80vpXyaZHjaIl47pjRq+Yt7XGTArqQg1V7hSqg

View File

@ -84,6 +84,7 @@ public class OTPListAdapter extends RecyclerView.Adapter<OTPListItem> {
// Click delay for HOTP // Click delay for HOTP
view.setClickable(false); view.setClickable(false);
data.incrementCounter(); data.incrementCounter();
saveOTPs.run();
Toast.makeText(view.getContext(), R.string.hotp_generated_new_code, Toast.LENGTH_SHORT).show(); Toast.makeText(view.getContext(), R.string.hotp_generated_new_code, Toast.LENGTH_SHORT).show();
@ -94,7 +95,6 @@ public class OTPListAdapter extends RecyclerView.Adapter<OTPListItem> {
holder.refresh(); holder.refresh();
} catch (OTPException e) { } catch (OTPException e) {
DialogUtil.showErrorDialog(context, context.getString(R.string.otp_add_error, e.getMessage() != null ? e.getMessage() : e.toString())); DialogUtil.showErrorDialog(context, context.getString(R.string.otp_add_error, e.getMessage() != null ? e.getMessage() : e.toString()));
return;
} }
}else { }else {
holder.setSelected(!holder.isSelected()); holder.setSelected(!holder.isSelected());