implement Service.onTimeout() in FetchForegroundService

This commit is contained in:
adbenitez
2025-11-12 16:46:21 +01:00
parent 85f679c69f
commit b809fc007b
@@ -108,4 +108,15 @@ public final class FetchForegroundService extends Service {
public IBinder onBind(Intent intent) {
return null;
}
@Override
public void onTimeout(int startId, int fgsType) {
if (fetchingSynchronously) {
fetchingSynchronously = false;
synchronized (STOP_NOTIFIER) {
STOP_NOTIFIER.notifyAll();
}
}
}
}