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