Floating calculator header buttons now vibrate

This commit is contained in:
serso 2015-02-16 22:41:42 +01:00
parent 1f8df36719
commit 6b9614b402

View File

@ -223,6 +223,7 @@ public class CalculatorOnscreenView {
onscreenFoldButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
App.getVibrator().vibrate();
if (folded) {
unfold();
} else {
@ -235,6 +236,7 @@ public class CalculatorOnscreenView {
onscreenHideButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
App.getVibrator().vibrate();
minimize();
}
});
@ -242,6 +244,7 @@ public class CalculatorOnscreenView {
root.findViewById(R.id.onscreen_close_button).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
App.getVibrator().vibrate();
hide();
}
});