Permalink
Browse files

fix can't quit bug

the vibration can't be quit when the vibration is running.
so fixed this.
  • Loading branch information...
masayukig committed Oct 20, 2010
1 parent b97fd8b commit b4069c961db262ab23dd6f9f7622d2a620fee415
Showing with 5 additions and 2 deletions.
  1. +2 −2 AndroidManifest.xml
  2. +3 −0 src/org/orzlabs/android/massage/Massage.java
View
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.orzlabs.android.massage"
android:versionCode="2"
android:versionName="1.0.1">
android:versionCode="3"
android:versionName="1.0.2">
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:label="@string/app_name" android:name=".Massage">
<intent-filter>
@@ -96,6 +96,9 @@ public boolean onCreateOptionsMenu(Menu menu) {
@Override
public boolean onOptionsItemSelected(MenuItem item) {
vib.cancel();
if (myVibrator != null) {
myVibrator.setToDie();
}
finish();
return true;
}

0 comments on commit b4069c9

Please sign in to comment.