From 6b9614b40209fbcf2710385aa32c303f3b1567c4 Mon Sep 17 00:00:00 2001 From: serso Date: Mon, 16 Feb 2015 22:41:42 +0100 Subject: [PATCH] Floating calculator header buttons now vibrate --- .../android/calculator/onscreen/CalculatorOnscreenView.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/android-app/src/main/java/org/solovyev/android/calculator/onscreen/CalculatorOnscreenView.java b/android-app/src/main/java/org/solovyev/android/calculator/onscreen/CalculatorOnscreenView.java index c6e4940a..33fd469e 100644 --- a/android-app/src/main/java/org/solovyev/android/calculator/onscreen/CalculatorOnscreenView.java +++ b/android-app/src/main/java/org/solovyev/android/calculator/onscreen/CalculatorOnscreenView.java @@ -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(); } });