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:
parent
d7750b94d6
commit
32e86c2c3f
2 changed files with 8 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
|||
DONE Run 'install ColorDict' dialog
|
||||
DONE Synchronize resources
|
||||
DONE Option for opening ColorDict immediately by finger tap
|
||||
* Synchronize resources
|
||||
DONE Synchronize resources
|
||||
|
||||
After 0.99:
|
||||
* More convenient mode changing
|
||||
|
|
|
@ -32,7 +32,7 @@ public class KillerService extends Service {
|
|||
|
||||
@Override
|
||||
public void onStart(Intent intent, int startId) {
|
||||
Process.killProcess(Process.myPid());
|
||||
stopSelf();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -40,4 +40,10 @@ public class KillerService extends Service {
|
|||
onStart(intent, startId);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDestroy() {
|
||||
super.onDestroy();
|
||||
Process.killProcess(Process.myPid());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue