Created
May 10, 2018 17:25
-
-
Save parahall/22176f2b74efc08cbea11e4e984a5232 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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