Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vibration feedback when transaction successful #5

Open
joseluu opened this issue Feb 23, 2021 · 0 comments
Open

Vibration feedback when transaction successful #5

joseluu opened this issue Feb 23, 2021 · 0 comments

Comments

@joseluu
Copy link

joseluu commented Feb 23, 2021

When transacting one has to keep the card on the reader for some time, a vibration feedback after the time has elapsed is a welcome confirmation for the user.

FIle SendTransactionActivity.java around line 255
For instance:
255 if (response.first.getError() != null) {
vibrateWarn(this);
showToast(response.first.getError().getMessage(), this);
} else {
vibrateOK(this);
showToast(getString(R.string.send_success), this);
}
} catch (IOException e) {
vibrateWarn(this);
showToast(getString(R.string.lost_tag), this);
Log.e(TAG, "IOException while sending ether transaction", e);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant