bump targetSdkVersion to 25

We have a lot of work to do to bump to the latest version: #1440
This commit is contained in:
Hans-Christoph Steiner 2018-04-25 22:39:36 +02:00
parent 76150db0c2
commit b1f0f43546
2 changed files with 10 additions and 2 deletions

View File

@ -6,7 +6,7 @@
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="24"
android:targetSdkVersion="25"
/>
<supports-screens

View File

@ -17,6 +17,12 @@ import org.fdroid.fdroid.Preferences;
* An {@link JobIntentService} subclass for tracking whether there is metered or
* unmetered internet available, based on
* {@link android.net.ConnectivityManager#CONNECTIVITY_ACTION}
* <p>
* {@link Build.VERSION_CODES#N Android 7.0} removed
* {@link android.net.ConnectivityManager#CONNECTIVITY_ACTION} so this will
* need to be totally changed to support that.
*
* @see <a href="https://developer.android.com/topic/performance/background-optimization">Background Optimizations</a>
*/
public class ConnectivityMonitorService extends JobIntentService {
public static final String TAG = "ConnectivityMonitorServ";
@ -36,7 +42,9 @@ public class ConnectivityMonitorService extends JobIntentService {
/**
* Register the {@link BroadcastReceiver} which also starts this
* {@code Service} since it is a sticky broadcast.
* {@code Service} since it is a sticky broadcast. This cannot be
* registered in the manifest, since {@link Build.VERSION_CODES#N Android 7.0}
* makes that not work.
*/
public static void registerAndStart(Context context) {
context.registerReceiver(CONNECTIVITY_RECEIVER, new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION));