@@ -553,13 +553,9 @@ public class MainActivity extends AppCompatActivity { | |||
@RequiresApi(api = Build.VERSION_CODES.O) | |||
@Override | |||
public void onClick(View v) { | |||
for (int i=1; i<=5; i++) | |||
{ | |||
System.out.println("Ready to Detect"); | |||
mShakeDetectionIsActive = true; | |||
mShakeDetected = false; | |||
btnReadyToDetect.setEnabled(false); | |||
} | |||
mShakeDetectionIsActive = true; | |||
mShakeDetected = false; | |||
btnReadyToDetect.setEnabled(false); | |||
} | |||
}); | |||
} |