Change-Id: Ib706f2446baa12d2b70ff5c5b3d5637214006340
// Tell the manager that we're shutting down, so in case new tasks are
// enqueued, we a new service needs to be started.
- mProcessingServiceManager.notifyStitchingFinished();
+ mProcessingServiceManager.notifyServiceFinished();
// TODO: Cancel session in progress...
}
/**
+ * @return Whether the service is currently running.
+ */
+ public synchronized boolean isServiceRunning() {
+ return mServiceRunning;
+ }
+
+ /**
* Called by the processing service, notifying us that it has finished.
*/
- public synchronized void notifyStitchingFinished() {
+ public synchronized void notifyServiceFinished() {
this.mServiceRunning = false;
}
}