Skip to content

Instantly share code, notes, and snippets.

@parahall
Created May 10, 2018 17:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save parahall/22176f2b74efc08cbea11e4e984a5232 to your computer and use it in GitHub Desktop.
Save parahall/22176f2b74efc08cbea11e4e984a5232 to your computer and use it in GitHub Desktop.
public class LocationWork extends Worker {
...
static void reportFinished() {
if (locationWait != null) {
Log.d(TAG, "doWork: locationWait down by one");
locationWait.countDown();
}
}
private void cleanUp() {
Log.d(TAG, "Work is done");
locationTracker.stop();
handlerThread.quit();
looper.quit();
handlerThread.quit();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment