Use JobScheduler to make the "WiFi-only" feature work properly newer Android versions.
I'm considering dropping support for KitKat, as we have now double the code for the same feature.
This commit is contained in:
5
app/src/main/res/values-v21/attrs.xml
Normal file
5
app/src/main/res/values-v21/attrs.xml
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<bool name="is_pre_api_21">false</bool>
|
||||
<bool name="is_post_api_21">true</bool>
|
||||
</resources>
|
5
app/src/main/res/values/attrs.xml
Normal file
5
app/src/main/res/values/attrs.xml
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<bool name="is_pre_api_21">true</bool>
|
||||
<bool name="is_post_api_21">false</bool>
|
||||
</resources>
|
Reference in New Issue
Block a user