Floating calculator header buttons now vibrate
This commit is contained in:
parent
1f8df36719
commit
6b9614b402
@ -223,6 +223,7 @@ public class CalculatorOnscreenView {
|
|||||||
onscreenFoldButton.setOnClickListener(new View.OnClickListener() {
|
onscreenFoldButton.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
|
App.getVibrator().vibrate();
|
||||||
if (folded) {
|
if (folded) {
|
||||||
unfold();
|
unfold();
|
||||||
} else {
|
} else {
|
||||||
@ -235,6 +236,7 @@ public class CalculatorOnscreenView {
|
|||||||
onscreenHideButton.setOnClickListener(new View.OnClickListener() {
|
onscreenHideButton.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
|
App.getVibrator().vibrate();
|
||||||
minimize();
|
minimize();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -242,6 +244,7 @@ public class CalculatorOnscreenView {
|
|||||||
root.findViewById(R.id.onscreen_close_button).setOnClickListener(new View.OnClickListener() {
|
root.findViewById(R.id.onscreen_close_button).setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
|
App.getVibrator().vibrate();
|
||||||
hide();
|
hide();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user