From 522a066dc5c9cb73f703619e30a6a1db4208573b Mon Sep 17 00:00:00 2001 From: MrLetsplay Date: Thu, 28 Sep 2023 16:12:13 +0200 Subject: [PATCH] Fix HOTP --- .../cringe_authenticator/otplist/OTPListAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/otplist/OTPListAdapter.java b/app/src/main/java/com/cringe_studios/cringe_authenticator/otplist/OTPListAdapter.java index d731722..6c2dc6c 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/otplist/OTPListAdapter.java +++ b/app/src/main/java/com/cringe_studios/cringe_authenticator/otplist/OTPListAdapter.java @@ -84,6 +84,7 @@ public class OTPListAdapter extends RecyclerView.Adapter { // Click delay for HOTP view.setClickable(false); data.incrementCounter(); + saveOTPs.run(); Toast.makeText(view.getContext(), R.string.hotp_generated_new_code, Toast.LENGTH_SHORT).show(); @@ -94,7 +95,6 @@ public class OTPListAdapter extends RecyclerView.Adapter { holder.refresh(); } catch (OTPException e) { DialogUtil.showErrorDialog(context, context.getString(R.string.otp_add_error, e.getMessage() != null ? e.getMessage() : e.toString())); - return; } }else { holder.setSelected(!holder.isSelected());