mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-03 17:59:33 +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 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
|
||||||
|
|
|
@ -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());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue