Fix HOTP
This commit is contained in:
parent
7dd500ad87
commit
522a066dc5
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user