Browse Source

Threshold angepasst

master
Patrick Halboth 3 years ago
parent
commit
59d17304ad
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      app/src/main/java/de/edotzlaff/detection/MainActivity.java

+ 1
- 1
app/src/main/java/de/edotzlaff/detection/MainActivity.java View File

if (mShakeDetectionIsActive && !mShakeDetected) { if (mShakeDetectionIsActive && !mShakeDetected) {
if(Math.abs(mAccel) > mUpperThreshold) { if(Math.abs(mAccel) > mUpperThreshold) {


new CountDownTimer(750, 10) {
new CountDownTimer(500, 10) {


public void onTick(long millisUntilFinished) { public void onTick(long millisUntilFinished) {
mShakeDetectionIsActive = false; mShakeDetectionIsActive = false;

Loading…
Cancel
Save