improve KeepAliveService

This commit is contained in:
adbenitez
2025-12-05 00:29:58 +01:00
parent d4675f25ec
commit e26ac3d264
4 changed files with 25 additions and 5 deletions
@@ -77,11 +77,17 @@ public class KeepAliveService extends Service {
return null;
}
@Override
public void onDestroy() {
Log.i("DeltaChat", "*** KeepAliveService.onDestroy()");
// the service will be restarted due to START_STICKY automatically, there's nothing more to do.
}
@Override
public void onTimeout(int startId, int fgsType) {
stopSelf();
}
static public KeepAliveService getInstance()
{
return s_this; // may be null