jobscheduler/src/main/java/me/tatarka/support/internal/receivers/IdleReceiver.java
public static void enableReceiver(Context context) {
        IntentFilter filter = getFilter();
        sReceiver = new IdleReceiver();
        context.getApplicationContext().registerReceiver(sReceiver, filter);
    }
public static void enableReceiver(Context context) {
        IntentFilter filter = getFilter();
        sReceiver = new IdleReceiver();
        context.getApplicationContext().registerReceiver(sReceiver, filter);
    }
Call this as soon as we get a chance, it will be unregistered whenever our app is killed.