1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-03 01:39:18 +02:00

fixed a problem with KillerService restarting

This commit is contained in:
Nikolay Pultsin 2010-12-29 18:39:09 +00:00
parent d7750b94d6
commit 32e86c2c3f
2 changed files with 8 additions and 2 deletions

View file

@ -2,7 +2,7 @@
DONE Run 'install ColorDict' dialog DONE Run 'install ColorDict' dialog
DONE Synchronize resources DONE Synchronize resources
DONE Option for opening ColorDict immediately by finger tap DONE Option for opening ColorDict immediately by finger tap
* Synchronize resources DONE Synchronize resources
After 0.99: After 0.99:
* More convenient mode changing * More convenient mode changing

View file

@ -32,7 +32,7 @@ public class KillerService extends Service {
@Override @Override
public void onStart(Intent intent, int startId) { public void onStart(Intent intent, int startId) {
Process.killProcess(Process.myPid()); stopSelf();
} }
@Override @Override
@ -40,4 +40,10 @@ public class KillerService extends Service {
onStart(intent, startId); onStart(intent, startId);
return 0; return 0;
} }
@Override
public void onDestroy() {
super.onDestroy();
Process.killProcess(Process.myPid());
}
} }