Skip to content
Snippets Groups Projects
Commit 9f3a63d8 authored by akwizgran's avatar akwizgran
Browse files

Don't unregister receiver unless it was registered.

parent 748fa77d
No related branches found
No related tags found
No related merge requests found
......@@ -40,6 +40,7 @@ class DozeWatchdogImpl implements DozeWatchdog, Service {
@Override
public void stopService() throws ServiceException {
if (SDK_INT < 23) return;
appContext.unregisterReceiver(receiver);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment