fix vibration during pause
This commit is contained in:
parent
37e49d83d4
commit
fdc7211262
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="org.woozle.penaltytimer"
|
||||
android:versionCode="1"
|
||||
android:versionCode="2"
|
||||
android:versionName="1.0">
|
||||
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="4" />
|
||||
<uses-permission android:name="android.permission.VIBRATE"/>
|
||||
|
|
3
Makefile
3
Makefile
|
@ -2,8 +2,7 @@ install: debug-install
|
|||
debug-install: bin/PenaltyTimer-debug.apk
|
||||
adb install -r $<
|
||||
|
||||
release-install: bin/PenaltyTimer-release.apk
|
||||
adb install -r $<
|
||||
release: bin/PenaltyTimer-release.apk
|
||||
|
||||
clean:
|
||||
ant clean
|
||||
|
|
|
@ -118,7 +118,7 @@ public class TimerButton
|
|||
if (r <= 0) {
|
||||
cf = releaseColor;
|
||||
} else if (r < 10000) {
|
||||
if (! shook) {
|
||||
if (running && ! shook) {
|
||||
vibr.vibrate(200);
|
||||
shook = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue