Closed jimdc closed 6 years ago
see https://stackoverflow.com/questions/12140844/java-lang-runtimeexception-wakelock-under-locked-c2dm-lib
Utility.sleepWithThreadInterruptIfWokenUp(updateFrequencyPref) wakeLock.release()
Caused here. Android doesn't like it when you sleep and then release?
newer implementation in BatteryAwareness checks if the wakelock is held before releasing it, per the StackOverflow recommendation.
BatteryAwareness
see https://stackoverflow.com/questions/12140844/java-lang-runtimeexception-wakelock-under-locked-c2dm-lib
Caused here. Android doesn't like it when you sleep and then release?